* { box-sizing: border-box; }
body { font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Noto Sans", "PingFang SC", "Microsoft YaHei", sans-serif; margin: 0; background: radial-gradient(ellipse at top, #0b0c1a, #090314 60%, #070012); color: #e6e6f0; }
header, footer { padding: 16px 24px; background: transparent; border-bottom: 0; }
main { padding: 24px; display: grid; grid-template-columns: 1fr; gap: 16px; max-width: 1100px; margin: 0 auto; }
body.with-tabs main { grid-template-columns: 240px 1fr; align-items: start; }
.tabs {
  display:flex;
  flex-direction: column;
  gap:8px;
  padding: 8px 12px;
  border-right:0;
  background: transparent;
  position: sticky;
  top: 16px;
  height: calc(100vh - 32px);
  /* 左侧固定一列 */
  grid-column: 1 / 2;
  grid-row: 1 / 999;
}
.tab {
  /* 右侧内容列 */
  grid-column: 2 / 3;
}
.tabs .spacer { flex:1; }
.tabs button {
  padding: 4px 10px;
  border: 0;
  background: transparent;
  color: #c0c2de;
  border-radius: 1px;
  cursor: pointer;
  min-width: 0;
  width: 100%;
  text-align: left;
  transition: background-color 0.16s ease, color 0.16s ease;
}
.tabs button:hover {
  background: rgba(79, 70, 229, 0.16);
  color: #f9fafb;
}
.tabs button.active {
  background: #4f46e5;
  color: #ffffff;
}
.card {
  background: #121328;
  border: 0;
  border-radius: 14px;
  padding: 16px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.38);
}
label { color:#b8b9cc; }
input, textarea, select {
  background:#0e0f22;
  color:#e8e9ff;
  border: 1px solid #34375e !important;
}
input:focus, textarea:focus, select:focus {
  background:#0e0f22;
  color:#e8e9ff;
  outline:none;
}
button { background:#5b5fe5; }
label { display:block; font-size: 14px; color: #b8b9cc; margin: 8px 0 4px; }
input[type="text"], input[type="password"] {
  width: 100%;
  padding: 10px 12px;
  border-radius: 8px;
}
button { margin-top: 12px; padding: 10px 14px; background: #4f46e5; color: white; border: 0; border-radius: 6px; cursor: pointer; }
button[disabled] { background: #c7c9d3; cursor: not-allowed; }

.pagination {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  font-size: 12px;
}
.pagination .page-info {
  opacity: 0.8;
}

.password-row {
  display: flex;
  gap: 8px;
  align-items: center;
}
.password-row input {
  flex: 1;
}

.profile-readonly {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  font-size: 14px;
}
.profile-field {
  padding: 6px 8px;
  background: #0e0f22;
  border-radius: 8px;
}
.profile-label {
  color: #9ca3af;
  font-size: 12px;
  margin-bottom: 2px;
}
.profile-value {
  color: #e6e6f0;
  word-break: break-all;
}

/* ===== Landing page layout ===== */
.landing-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 32px;
}
.landing-logo {
  font-weight: 700;
  font-size: 20px;
  letter-spacing: 0.08em;
}
.landing-nav {
  display: flex;
  gap: 20px;
  align-items: center;
}
.landing-nav a,
.landing-nav-more-btn,
.landing-link {
  display: inline-flex;
  align-items: center;
  font-size: 14px;
  color: #e6e6f0;
  text-decoration: none;
  background: none;
  border: 0;
  cursor: pointer;
}
.landing-nav a:hover,
.landing-link:hover {
  color: #aeb4ff;
}
.landing-nav-more {
  position: relative;
  display: inline-flex;
  align-items: center;
}
.landing-nav-more-btn {
  position: relative;
  top: -6px;
}
.landing-nav-more-btn::after {
  content: '▾';
  margin-left: 4px;
  font-size: 14px;
}
.landing-nav-more-menu {
  position: absolute;
  top: 120%;
  left: 0;
  min-width: 140px;
  background: #15162b;
  border: 3px solid #2a2c45;
  border-radius: 10px;
  padding: 6px 0;
  display: none;
  box-shadow: 0 14px 30px rgba(0,0,0,0.45);
  z-index: 10;
}
.landing-nav-more:hover .landing-nav-more-menu {
  display: block;
}
.landing-nav-more-menu a {
  display: block;
  padding: 6px 12px;
  font-size: 13px;
}
.landing-nav-more-menu a:hover {
  background: #232446;
}
.landing-actions .landing-link {
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid #3a3d66;
}

.landing-main {
  max-width: 1100px;
  margin: 0 auto 40px;
  padding: 0 24px 24px;
  display: flex;
  flex-direction: column;
  gap: 40px;
}
.landing-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 32px;
  align-items: center;
}
.landing-hero-text h1 {
  font-size: 32px;
  margin: 0 0 12px;
}
.landing-hero-text p {
  margin: 0 0 16px;
  color: #c0c2de;
}
.landing-hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 8px;
}
.landing-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 14px;
  text-decoration: none;
  border: 1px solid transparent;
}
.landing-btn-primary {
  background: #4f46e5;
  color: #fff;
  border-color: #4f46e5;
}
.landing-btn-primary:hover {
  background: #5b5fe5;
}
.landing-btn-secondary {
  background: transparent;
  color: #e6e6f0;
  border-color: #3a3d66;
}
.landing-hero-note {
  font-size: 12px;
  opacity: 0.8;
}
.landing-hero-preview .card {
  min-height: 220px;
}

.landing-section {
  margin-top: 8px;
}
.landing-section h2 {
  font-size: 22px;
  margin-bottom: 12px;
}
.landing-section p {
  color: #c0c2de;
  font-size: 14px;
}
.landing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.landing-footer {
  border-top: 1px solid #232446;
  padding: 24px 32px 18px;
  margin-top: 16px;
}
.landing-footer-columns {
  max-width: 1100px;
  margin: 0 auto 16px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 16px;
}
.landing-footer-col h4 {
  margin: 0 0 8px;
  font-size: 13px;
}
.landing-footer-col a {
  display: block;
  font-size: 12px;
  color: #c0c2de;
  text-decoration: none;
  margin: 2px 0;
}
.landing-footer-col a:hover {
  color: #aeb4ff;
}
.landing-footer-bottom {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  opacity: 0.8;
  flex-wrap: wrap;
  gap: 8px;
}

@media (max-width: 768px) {
  .landing-hero {
    grid-template-columns: 1fr;
  }
  .landing-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  .landing-nav {
    flex-wrap: wrap;
  }
}


