/* ============================================================
   MILESTONES — article page
   依赖 assets/tokens.css, assets/base.css, assets/main.css
   ============================================================ */

.ms-post-main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: var(--space-7) var(--space-5) var(--space-8);
}

.ms-post-doc {
  background: #ffffff;
  color: #1a1a2e;
  border-radius: var(--radius);
  padding: 56px 48px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.ms-post-header {
  text-align: center;
  padding-bottom: var(--space-6);
  margin-bottom: var(--space-6);
  border-bottom: 3px solid #2563eb;
}

.ms-post-title {
  font-size: var(--font-h1);
  margin-bottom: var(--space-3);
  color: #1a1a2e;
  line-height: 1.2;
}

.ms-post-sub {
  font-size: var(--font-h4);
  color: #4b5568;
  margin-bottom: var(--space-4);
}

.doc-version {
  display: inline-block;
  font-size: 14px;
  font-weight: 600;
  color: #4b5568;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  padding: 2px 10px;
  border-radius: 20px;
  margin-left: 8px;
  vertical-align: middle;
  letter-spacing: 0.5px;
  font-family: "SF Mono", "Consolas", "Monaco", monospace;
}

.ms-post-meta {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--font-small);
  color: #4b5568;
  background: #f9fafb;
  padding: 8px 20px;
  border-radius: 40px;
  border: 1px solid #e5e7eb;
  flex-wrap: wrap;
  justify-content: center;
}

.ms-post-meta .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #2563eb;
}

.ms-post-author {
  color: #2563eb;
  font-weight: 600;
}

.ms-post-author:hover {
  text-decoration: underline;
}

.ms-section {
  margin-bottom: var(--space-7);
}

.ms-h2 {
  font-size: var(--font-h2);
  font-weight: 700;
  color: #1a1a2e;
  margin-bottom: var(--space-2);
  padding-bottom: var(--space-3);
  border-bottom: 2px solid #dbeafe;
}

.ms-h2-zh {
  font-size: var(--font-body);
  color: #4b5568;
  margin-bottom: var(--space-5);
}

.ms-h3 {
  font-size: var(--font-h4);
  font-weight: 700;
  color: #2563eb;
  margin-top: var(--space-5);
  margin-bottom: var(--space-3);
}

.ms-p {
  font-size: var(--font-body);
  color: #1a1a2e;
  line-height: 1.7;
  margin-bottom: var(--space-4);
}

.ms-list {
  list-style: none;
  padding-left: 4px;
  margin-bottom: var(--space-4);
}

.ms-list li {
  font-size: var(--font-body);
  color: #1a1a2e;
  padding: 5px 0 5px 24px;
  position: relative;
  line-height: 1.6;
}

.ms-list li::before {
  content: "▸";
  position: absolute;
  left: 4px;
  color: #2563eb;
  font-weight: 700;
}

.gs-code {
  background: #1a1a2e;
  color: #e5e7eb;
  padding: var(--space-4) var(--space-5);
  border-radius: var(--radius-sm);
  font-family: "SF Mono", "Consolas", "Monaco", "Menlo", monospace;
  font-size: 14px;
  line-height: 1.6;
  overflow-x: auto;
  margin-bottom: var(--space-4);
  white-space: pre;
}

/* ============ TABLE ============ */
.ms-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin-bottom: var(--space-5);
  border: 1px solid #e5e7eb;
  border-radius: var(--radius-sm);
  overflow: hidden;
  font-size: 16px;
}

.ms-table thead th {
  background: #2563eb;
  color: #ffffff;
  font-size: 15px;
  font-weight: 600;
  padding: 12px 16px;
  text-align: left;
}

.ms-table tbody tr:nth-child(odd) {
  background: #f9fafb;
}

.ms-table tbody tr:nth-child(even) {
  background: #ffffff;
}

.ms-table td {
  padding: 10px 16px;
  font-size: 15px;
  border-bottom: 1px solid #e5e7eb;
  vertical-align: top;
  color: #1a1a2e;
}

.ms-table tbody tr:last-child td {
  border-bottom: none;
}

.ms-table code {
  background: #f3f4f6;
  color: #1f2937;
  padding: 2px 6px;
  border-radius: 4px;
  font-family: "SF Mono", "Consolas", "Monaco", monospace;
  font-size: 13px;
}

/* ============ CALLOUT ============ */
.callout {
  padding: var(--space-4) var(--space-5);
  border-radius: var(--radius-sm);
  margin-bottom: var(--space-4);
  border-left: 4px solid;
}

.callout-info {
  background: #eff6ff;
  border-color: #3b82f6;
  color: #1e3a8a;
}

.callout-warn {
  background: #fef3c7;
  border-color: #f59e0b;
  color: #78350f;
}

.callout-success {
  background: #d1fae5;
  border-color: #10b981;
  color: #064e3b;
}

.callout-title {
  font-weight: 700;
  margin-bottom: 6px;
  font-size: 16px;
}

.callout p {
  font-size: 15px;
  line-height: 1.6;
  margin: 0;
}

.callout p+p {
  margin-top: 8px;
}

/* ============ DOC LIST ============ */
.ms-doc-list {
  list-style: none;
  padding-left: 4px;
  margin-bottom: var(--space-4);
}

.ms-doc-list li {
  font-size: var(--font-body);
  color: #1a1a2e;
  padding: 5px 0 5px 24px;
  position: relative;
  line-height: 1.6;
}

.ms-doc-list li::before {
  content: "▸";
  position: absolute;
  left: 4px;
  color: #2563eb;
  font-weight: 700;
}

.ms-doc-list.ms-doc-list-num {
  list-style: decimal;
  padding-left: 24px;
}

.ms-doc-list.ms-doc-list-num li {
  padding-left: 0;
  display: list-item;
}

.ms-doc-list.ms-doc-list-num li::before {
  content: none;
}

@media (max-width: 640px) {
  .ms-post-main {
    padding: var(--space-5) var(--space-4) var(--space-6);
  }

  .ms-post-doc {
    padding: 32px 20px;
  }

  .ms-post-title {
    font-size: var(--font-h2);
  }

  .ms-post-sub {
    font-size: var(--font-body);
  }

  .ms-h2 {
    font-size: var(--font-h3);
  }

  .ms-h3 {
    font-size: var(--font-body);
  }
}