:root {
  --bg: #181c2f;
  --card-bg: #232849;
  --primary: #5b7fff;
  --text: #f3f6ff;
  --desc: #b0b8d1;
  --border: #2e345a;
  --hover: #2a3152;
  --shadow: 0 2px 8px 0 rgba(91, 127, 255, 0.06);
  --divider: rgba(91, 127, 255, 0.1);
  --btn-gradient: linear-gradient(90deg, #5b7fff 0%, #a8bfff 100%);
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: "Segoe UI", "PingFang SC", "Hiragino Sans", Arial, sans-serif;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

.bg-stars {
  position: fixed;
  z-index: 0;
  width: 100vw;
  height: 100vh;
  left: 0;
  top: 0;
  pointer-events: none;
  background: radial-gradient(ellipse at 50% 0%, #5b7fff33 0%, transparent 70%);
}
.star {
  position: absolute;
  width: 2px;
  height: 2px;
  background: #fff;
  border-radius: 50%;
  opacity: 0.7;
  animation: twinkle linear infinite;
}
@keyframes twinkle {
  0%,
  100% {
    opacity: 0.7;
  }
  50% {
    opacity: 0.2;
  }
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 32px 6vw 0 6vw;
  background: transparent;
  z-index: 2;
  position: relative;
}

.brand {
  display: flex;
  align-items: center;
  font-size: 2rem;
  font-weight: bold;
  color: var(--primary);
  letter-spacing: 2px;
  gap: 10px;
}
.brand-icon {
  font-size: 2.2rem;
}

nav a {
  color: var(--desc);
  margin-left: 32px;
  text-decoration: none;
  font-size: 1.08rem;
  font-weight: 500;
  transition: color 0.2s;
  letter-spacing: 1px;
}
nav a:hover {
  color: var(--primary);
}

.hero {
  text-align: center;
  padding: 100px 0 50px 0;
  position: relative;
  z-index: 1;
}
.hero h1 {
  font-size: 2.8rem;
  font-weight: 800;
  margin-bottom: 18px;
  letter-spacing: 2px;
  background: linear-gradient(90deg, #5b7fff 30%, #a8bfff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-desc {
  color: var(--desc);
  font-size: 1.2rem;
  margin-bottom: 32px;
  letter-spacing: 1px;
}
.hero-actions {
  display: flex;
  justify-content: center;
  gap: 18px;
}
.btn-primary,
.btn-secondary {
  display: inline-block;
  padding: 12px 32px;
  border-radius: 24px;
  font-size: 1.08rem;
  font-weight: 600;
  text-decoration: none;
  transition: box-shadow 0.2s, background 0.2s;
  margin-top: 8px;
}
.btn-primary {
  background: var(--btn-gradient);
  color: #fff;
  box-shadow: 0 2px 16px 0 #5b7fff33;
  border: none;
}
.btn-primary:hover {
  box-shadow: 0 4px 24px 0 #5b7fff55;
  background: linear-gradient(90deg, #5b7fff 0%, #7faaff 100%);
}
.btn-secondary {
  background: transparent;
  color: var(--primary);
  border: 1.5px solid var(--primary);
}
.btn-secondary:hover {
  background: var(--primary);
  color: #fff;
}

.nav-sections {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 6vw 60px 6vw;
  position: relative;
  z-index: 1;
}
.nav-group {
  margin-top: 48px;
}
.group-header {
  display: flex;
  align-items: baseline;
  gap: 18px;
  margin-bottom: 18px;
}
.group-header h2 {
  font-size: 1.18rem;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 1px;
}
.group-desc {
  color: var(--desc);
  font-size: 1rem;
  font-weight: 400;
  letter-spacing: 0.5px;
}
.divider {
  height: 1px;
  background: var(--divider);
  margin: 40px 0 0 0;
  border-radius: 1px;
}

.nav-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
}
.nav-card {
  display: flex;
  align-items: center;
  background: var(--card-bg);
  border-radius: 14px;
  padding: 14px 12px;
  text-decoration: none;
  color: var(--text);
  box-shadow: var(--shadow);
  border: 1.5px solid rgba(120, 150, 255, 0.35);
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s,
    border-color 0.2s;
  position: relative;
  overflow: hidden;
  min-height: 48px;
  cursor: pointer;
  will-change: transform;
}
.nav-card:hover {
  background: var(--hover);
  transform: translateY(-2px) scale(1.01);
  box-shadow: 0 2px 8px 0 rgba(91, 127, 255, 0.08),
    0 0 2px 0 rgba(91, 127, 255, 0.05);
  border-color: var(--primary);
}
.nav-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 10px;
  font-size: 1.2rem;
  box-shadow: none;
  background: var(--primary);
  overflow: hidden;
}
.nav-icon img {
  width: 20px;
  height: 20px;
  border-radius: 4px;
  object-fit: contain;
  background: #fff;
}
.nav-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.nav-title {
  font-size: 0.98rem;
  font-weight: 600;
  margin-bottom: 1px;
  letter-spacing: 0.2px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.nav-desc {
  color: var(--desc);
  font-size: 0.85rem;
  letter-spacing: 0.1px;
  font-weight: 400;
}
.tag {
  display: inline-block;
  font-size: 0.68em;
  padding: 1px 6px;
  border-radius: 8px;
  background: #5b7fff22;
  color: var(--primary);
  margin-left: 4px;
  font-weight: 500;
  letter-spacing: 0.2px;
}
.tag.hot {
  background: #ffb6b933;
  color: #ff6b81;
}
.tag.new {
  background: #a8bfff33;
  color: #5b7fff;
}

.links-section {
  max-width: 1100px;
  margin: 40px auto 0 auto;
  padding: 0 6vw;
  text-align: center;
}
.links-title {
  color: var(--primary);
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 12px;
  letter-spacing: 1px;
}
.links-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px;
}
.links-list a {
  color: var(--desc);
  background: var(--card-bg);
  padding: 6px 18px;
  border-radius: 16px;
  text-decoration: none;
  font-size: 1rem;
  transition: background 0.2s, color 0.2s;
}
.links-list a:hover {
  background: var(--primary);
  color: #fff;
}

.contact-section {
  max-width: 600px;
  margin: 48px auto 0 auto;
  padding: 0 6vw;
}
.contact-card {
  background: var(--card-bg);
  border-radius: 18px;
  box-shadow: var(--shadow);
  padding: 32px 24px;
  text-align: center;
}
.contact-card h3 {
  color: var(--primary);
  font-size: 1.2rem;
  margin-bottom: 12px;
}
.contact-card a {
  color: var(--primary);
  text-decoration: underline;
  word-break: break-all;
}
.contact-card a:hover {
  color: #fff;
  background: var(--primary);
  border-radius: 6px;
  padding: 2px 6px;
}

footer {
  background: transparent;
  color: var(--desc);
  font-size: 1rem;
  text-align: center;
  padding: 40px 0 24px 0;
  letter-spacing: 1px;
  z-index: 2;
  position: relative;
}

/* 响应式设计 */
@media (max-width: 900px) {
  header,
  .nav-sections,
  .links-section,
  .contact-section {
    padding-left: 3vw;
    padding-right: 3vw;
  }
  .nav-cards {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .hero h1 {
    font-size: 2rem;
  }
}
@media (max-width: 600px) {
  header {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
    padding-top: 18px;
  }
  .brand {
    font-size: 1.3rem;
  }
  nav a {
    margin-left: 18px;
    font-size: 1rem;
  }
  .hero {
    padding: 40px 0 20px 0;
  }
  .nav-group {
    margin-top: 28px;
  }
  .nav-cards {
    grid-template-columns: 1fr 1fr;
    gap: 14px;
  }
  .nav-card {
    padding: 16px 10px;
    min-height: 38px;
    border-radius: 12px;
  }
  .nav-icon {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    margin-right: 10px;
    font-size: 1.1rem;
  }
  .nav-icon img {
    width: 18px;
    height: 18px;
    border-radius: 3px;
  }
  .nav-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0;
    gap: 5px;
  }
  .nav-desc {
    font-size: 0.82rem;
    letter-spacing: 0.08px;
  }
  .tag {
    font-size: 0.7em;
    padding: 1px 6px;
    border-radius: 6px;
    margin-left: 3px;
  }
  .contact-card {
    padding: 16px 6px;
  }
}
.nav-card:hover {
  background: var(--hover);
  transform: translateY(-2px) scale(1.015);
  box-shadow: 0 4px 12px 0 rgba(91, 127, 255, 0.08),
    0 0 4px 0 rgba(91, 127, 255, 0.05);
  border-color: var(--primary);
}

/* 弹窗遮罩 */
.modal-overlay {
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
  background: rgba(24, 28, 47, 0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.2s;
}
/* 弹窗主体 */
.modal {
  background: var(--card-bg);
  border-radius: 16px;
  border: 2.5px solid rgba(120, 150, 255, 0.55);
  max-width: 98vw;
  width: 600px;
  padding: 32px 24px 24px 24px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 18px;
  animation: modalIn 0.2s cubic-bezier(0.4, 2, 0.6, 1) both;
}
@keyframes modalIn {
  0% {
    transform: translateY(40px) scale(0.95);
    opacity: 0;
  }
  100% {
    transform: none;
    opacity: 1;
  }
}
.modal-close {
  position: absolute;
  top: 16px;
  right: 18px;
  font-size: 1.3rem;
  color: var(--desc);
  background: none;
  border: none;
  cursor: pointer;
  transition: color 0.2s;
}
.modal-close:hover {
  color: var(--primary);
}
.modal-content {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.modal-declare {
  background: var(--bg);
  border-radius: 10px;
  padding: 14px 12px;
  color: var(--desc);
  font-size: 0.98rem;
  line-height: 1.7;
}
.modal-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.modal-form label {
  color: var(--primary);
  font-size: 0.97rem;
  margin-bottom: 2px;
}
.modal-form input,
.modal-form select {
  background: var(--bg);
  border: 1.2px solid var(--border);
  border-radius: 7px;
  padding: 8px 10px;
  color: var(--text);
  font-size: 1rem;
  outline: none;
  transition: border-color 0.2s;
}
.modal-form input:focus,
.modal-form select:focus {
  border-color: var(--primary);
}
.modal-form button {
  margin-top: 8px;
  background: var(--btn-gradient);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 10px 0;
  font-size: 1.08rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, box-shadow 0.2s;
  box-shadow: 0 2px 8px 0 #5b7fff22;
}
.modal-form button:hover {
  background: linear-gradient(90deg, #5b7fff 0%, #7faaff 100%);
}
@media (min-width: 700px) {
  .modal-content {
    flex-direction: row;
    gap: 32px;
  }
  .modal-declare {
    flex: 1.1;
    min-width: 220px;
    max-width: 340px;
    font-size: 1.01rem;
    padding: 18px 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: left;
    word-break: break-all;
  }
  .modal-form {
    flex: 1.6;
    min-width: 180px;
  }
}
/* 移除底部友情链接和联系我们相关样式，无需保留 */
.links-section,
.contact-section {
  display: none !important;
}
