:root {
  --bg-primary: #0b0e14;
  --bg-secondary: #121722;
  --bg-card: #182030;
  --bg-card-hover: #1e283d;
  --border-color: #263248;
  --border-highlight: #3b4d6e;
  --text-primary: #f0f4f8;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --accent: #5865f2;
  --accent-hover: #4752c4;
  --accent-light: rgba(88, 101, 242, 0.15);
  --success: #10b981;
  --warning: #f59e0b;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.65;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: #7986ff;
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: #9aa5ff;
  text-decoration: underline;
}

.navbar {
  background-color: rgba(18, 23, 34, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 0.85rem 1.5rem;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.25rem;
  font-weight: 700;
  color: #ffffff;
  text-decoration: none;
}

.brand-icon {
  width: 34px;
  height: 34px;
  background: linear-gradient(135deg, #5865f2, #8b5cf6);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 800;
  color: #ffffff;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  list-style: none;
}

.nav-links a {
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.4rem 0.8rem;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: #ffffff;
  background-color: var(--bg-card);
  text-decoration: none;
}

.page-header {
  padding: 3.5rem 1.5rem 2rem;
  background: radial-gradient(circle at top center, rgba(88, 101, 242, 0.12), transparent 70%);
  border-bottom: 1px solid var(--border-color);
  text-align: center;
}

.header-container {
  max-width: 900px;
  margin: 0 auto;
}

.badge {
  display: inline-block;
  padding: 0.35rem 0.85rem;
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: 9999px;
  background-color: var(--accent-light);
  color: #9aa5ff;
  border: 1px solid rgba(88, 101, 242, 0.3);
  margin-bottom: 1rem;
}

.page-title {
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  margin-bottom: 0.75rem;
  color: #ffffff;
}

.page-subtitle {
  color: var(--text-secondary);
  font-size: 1.1rem;
  max-width: 650px;
  margin: 0 auto 1.25rem;
}

.meta-info {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.main-content {
  max-width: 1200px;
  width: 100%;
  margin: 2.5rem auto;
  padding: 0 1.5rem;
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 2.5rem;
  flex: 1;
}

.single-column {
  grid-template-columns: 1fr;
  max-width: 960px;
}

.sidebar {
  position: sticky;
  top: 5rem;
  height: fit-content;
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 1.5rem;
}

.sidebar-title {
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 1rem;
  font-weight: 700;
}

.toc-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.toc-list a {
  display: block;
  font-size: 0.9rem;
  color: var(--text-secondary);
  padding: 0.4rem 0.6rem;
  border-radius: 6px;
  transition: all 0.2s ease;
  line-height: 1.4;
}

.toc-list a:hover {
  color: #ffffff;
  background-color: var(--bg-card);
  text-decoration: none;
}

.doc-body {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.doc-section {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 2rem;
  scroll-margin-top: 5rem;
}

.doc-section h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 0.75rem;
}

.section-num {
  color: #7986ff;
  font-size: 1.2rem;
}

.doc-section h3 {
  font-size: 1.15rem;
  font-weight: 600;
  margin: 1.25rem 0 0.5rem;
  color: #e2e8f0;
}

.doc-section p {
  color: #cbd5e1;
  margin-bottom: 1rem;
}

.doc-section p:last-child {
  margin-bottom: 0;
}

.doc-section ul,
.doc-section ol {
  margin: 0.5rem 0 1rem 1.5rem;
  color: #cbd5e1;
}

.doc-section li {
  margin-bottom: 0.5rem;
}

.notice-box {
  background-color: rgba(88, 101, 242, 0.08);
  border: 1px solid rgba(88, 101, 242, 0.3);
  border-left: 4px solid #5865f2;
  border-radius: 8px;
  padding: 1rem 1.25rem;
  margin: 1.25rem 0;
}

.notice-box.warning {
  background-color: rgba(245, 158, 11, 0.08);
  border-color: rgba(245, 158, 11, 0.3);
  border-left-color: #f59e0b;
}

.notice-box.success {
  background-color: rgba(16, 185, 129, 0.08);
  border-color: rgba(16, 185, 129, 0.3);
  border-left-color: #10b981;
}

.notice-box h4 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
  color: #ffffff;
}

.portal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.portal-card {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.portal-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-highlight);
  background-color: var(--bg-card);
}

.portal-card-icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.25rem;
  background-color: var(--accent-light);
  color: #7986ff;
}

.portal-card h3 {
  font-size: 1.35rem;
  margin-bottom: 0.75rem;
  color: #ffffff;
}

.portal-card p {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  flex: 1;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.7rem 1.4rem;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 8px;
  transition: all 0.2s ease;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background-color: var(--accent);
  color: #ffffff;
}

.btn-primary:hover {
  background-color: var(--accent-hover);
  color: #ffffff;
  text-decoration: none;
}

.btn-outline {
  background-color: transparent;
  color: #ffffff;
  border: 1px solid var(--border-color);
}

.btn-outline:hover {
  background-color: var(--bg-card);
  border-color: var(--border-highlight);
  text-decoration: none;
}

.feature-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.7rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  font-size: 0.85rem;
  color: #e2e8f0;
  margin-right: 0.4rem;
  margin-bottom: 0.4rem;
}

.table-wrapper {
  overflow-x: auto;
  margin: 1rem 0;
  border-radius: 8px;
  border: 1px solid var(--border-color);
}

table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.9rem;
}

th, td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border-color);
}

th {
  background-color: var(--bg-card);
  color: #ffffff;
  font-weight: 600;
}

tr:last-child td {
  border-bottom: none;
}

.contact-card {
  background: linear-gradient(135deg, rgba(88, 101, 242, 0.1), rgba(139, 92, 246, 0.1));
  border: 1px solid rgba(88, 101, 242, 0.3);
  border-radius: 12px;
  padding: 1.75rem;
  margin-top: 1.5rem;
  text-align: center;
}

.contact-email {
  display: inline-block;
  font-size: 1.15rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0.75rem 0;
  padding: 0.5rem 1.25rem;
  background-color: var(--bg-card);
  border-radius: 8px;
  border: 1px solid var(--border-color);
}

.footer {
  background-color: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  padding: 2.5rem 1.5rem;
  margin-top: auto;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  align-items: center;
  text-align: center;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
  font-size: 0.9rem;
}

.footer-copyright {
  color: var(--text-muted);
  font-size: 0.85rem;
}

@media (max-width: 868px) {
  .main-content {
    grid-template-columns: 1fr;
  }
  .sidebar {
    position: static;
    margin-bottom: 1.5rem;
  }
  .page-title {
    font-size: 2rem;
  }
}
