/* 工具区 / 深色主题样式 */
.theme-dark {
  background: linear-gradient(135deg, #0f0c29, #302b63, #24243e);
  color: #fff;
}

/* ========== 门户首页 ========== */
.portal {
  min-height: calc(100vh - 56px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 24px;
  background:
    radial-gradient(ellipse at top, rgba(67, 97, 238, 0.18), transparent 60%),
    linear-gradient(135deg, #0f0c29, #302b63, #24243e);
}

.portal-hero {
  text-align: center;
  margin-bottom: 56px;
}

.portal-hero h1 {
  font-size: 56px;
  font-weight: 800;
  margin-bottom: 14px;
  letter-spacing: -1px;
  background: linear-gradient(90deg, #fff 0%, #a5b4fc 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.portal-hero p {
  color: #8888bb;
  font-size: 18px;
}

.portal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 28px;
  width: 100%;
  max-width: 820px;
}

.portal-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 44px 36px;
  border-radius: 26px;
  text-decoration: none;
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
  transition: all .35s ease;
}

.portal-card:hover {
  transform: translateY(-8px);
  border-color: rgba(123, 140, 255, 0.45);
  box-shadow: 0 28px 70px rgba(67, 97, 238, 0.28);
}

.portal-card .portal-icon {
  font-size: 60px;
  margin-bottom: 22px;
}

.portal-card h2 {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 10px;
}

.portal-card p {
  color: #9999cc;
  font-size: 15px;
  line-height: 1.7;
  margin-bottom: 28px;
}

.portal-btn {
  margin-top: auto;
  padding: 11px 22px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  transition: all .2s;
}

.portal-card:hover .portal-btn {
  background: var(--primary);
}

/* ========== 工具箱落地页 ========== */
.tools-hero {
  text-align: center;
  padding: 64px 24px 44px;
}

.tools-hero h1 {
  font-size: 42px;
  font-weight: 800;
  margin-bottom: 12px;
  background: linear-gradient(90deg, #fff, #a5b4fc);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.tools-hero p {
  color: #8888bb;
  font-size: 16px;
  max-width: 560px;
  margin: 0 auto;
}

.tool-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px 60px;
}

.tool-card {
  display: block;
  padding: 36px 28px;
  text-align: center;
  text-decoration: none;
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 22px;
  transition: all .3s ease;
}

.tool-card:hover {
  transform: translateY(-6px);
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(123, 140, 255, 0.4);
  box-shadow: 0 18px 50px rgba(67, 97, 238, 0.25);
}

.tool-card .icon {
  font-size: 50px;
  margin-bottom: 18px;
}

.tool-card h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 8px;
}

.tool-card p {
  font-size: 14px;
  color: #9999cc;
  line-height: 1.6;
}

.status-bar {
  text-align: center;
  padding: 16px;
  color: #6666aa;
  font-size: 13px;
}
