/* ==========================================================================
   TAG机场官网 (tag-jichang.cfd) - Knowledge Base & Article Stylesheet
   ========================================================================== */

.article-page {
  padding-top: 110px;
  padding-bottom: 90px;
}

.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  color: var(--text-dim);
  margin-bottom: 28px;
}

.breadcrumbs a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.breadcrumbs a:hover {
  color: var(--accent-cyan);
}

.breadcrumbs span {
  color: var(--text-dim);
}

.article-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 40px;
  align-items: start;
}

/* Main Article Content Container */
.article-main {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 42px;
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow-card);
}

.article-header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 28px;
  margin-bottom: 32px;
}

.article-tag-badge {
  display: inline-block;
  background: rgba(0, 242, 254, 0.12);
  color: var(--accent-cyan);
  border: 1px solid rgba(0, 242, 254, 0.3);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  margin-bottom: 16px;
}

.article-title {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  line-height: 1.3;
  margin-bottom: 18px;
  color: #fff;
}

.article-meta-row {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 0.85rem;
  color: var(--text-dim);
}

.article-meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Callout CTA Box in Article */
.article-promo-box {
  background: linear-gradient(135deg, rgba(0, 242, 254, 0.1) 0%, rgba(121, 40, 202, 0.15) 100%);
  border: 1px solid rgba(0, 242, 254, 0.35);
  border-radius: var(--radius-md);
  padding: 24px;
  margin: 28px 0 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.promo-text h4 {
  font-size: 1.15rem;
  color: #fff;
  margin-bottom: 6px;
}

.promo-text p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Body Content Typography */
.article-body {
  font-size: 1.05rem;
  line-height: 1.85;
  color: #d1d8e6;
}

.article-body p {
  margin-bottom: 22px;
}

.article-body h2 {
  font-size: 1.6rem;
  color: #fff;
  margin: 40px 0 18px;
  padding-bottom: 10px;
  border-bottom: 2px solid rgba(0, 242, 254, 0.3);
  position: relative;
}

.article-body h2::before {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 60px;
  height: 2px;
  background: var(--accent-cyan);
}

.article-body h3 {
  font-size: 1.3rem;
  color: #f0f4fc;
  margin: 30px 0 14px;
}

.article-body ul, .article-body ol {
  margin-bottom: 24px;
  padding-left: 24px;
}

.article-body li {
  margin-bottom: 10px;
}

.article-body blockquote {
  background: rgba(255, 255, 255, 0.03);
  border-left: 4px solid var(--accent-cyan);
  padding: 18px 24px;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  margin: 24px 0;
  color: var(--text-muted);
  font-style: italic;
}

.article-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 26px 0;
  font-size: 0.92rem;
}

.article-body th {
  background: rgba(0, 242, 254, 0.08);
  padding: 14px 18px;
  color: var(--accent-cyan);
  border: 1px solid rgba(255, 255, 255, 0.08);
  text-align: left;
}

.article-body td {
  padding: 12px 18px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--text-muted);
}

.article-body tr:nth-child(even) td {
  background: rgba(255, 255, 255, 0.02);
}

.article-body pre {
  background: #04070d;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  padding: 20px;
  overflow-x: auto;
  font-family: Consolas, Monaco, "Courier New", monospace;
  font-size: 0.9rem;
  color: #a5b4fc;
  margin: 24px 0;
}

.article-body code {
  background: rgba(255, 255, 255, 0.08);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.88em;
  color: var(--accent-cyan);
  font-family: monospace;
}

.article-body pre code {
  background: transparent;
  padding: 0;
  color: inherit;
}

.article-body a {
  color: var(--accent-cyan);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.article-body a:hover {
  color: #fff;
}

/* Alert Boxes in article */
.alert-box {
  padding: 18px 22px;
  border-radius: var(--radius-md);
  margin: 24px 0;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  font-size: 0.94rem;
}

.alert-tip {
  background: rgba(0, 242, 254, 0.08);
  border: 1px solid rgba(0, 242, 254, 0.3);
  color: #e0f7fa;
}

.alert-warning {
  background: rgba(245, 166, 35, 0.08);
  border: 1px solid rgba(245, 166, 35, 0.3);
  color: #fff3e0;
}

/* Article Internal Linking Recommendations */
.related-articles-box {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 24px;
  margin-top: 40px;
}

.related-articles-box h4 {
  font-size: 1.15rem;
  margin-bottom: 16px;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 8px;
}

.related-links-list {
  list-style: none;
  padding: 0;
}

.related-links-list li {
  margin-bottom: 12px;
}

.related-links-list a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.94rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}

.related-links-list a:hover {
  background: rgba(0, 242, 254, 0.1);
  color: var(--accent-cyan);
  padding-left: 18px;
}

/* Sidebar Widgets */
.article-sidebar {
  display: flex;
  flex-direction: column;
  gap: 24px;
  position: sticky;
  top: 90px;
}

.sidebar-widget {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 24px;
  backdrop-filter: blur(16px);
}

.widget-title {
  font-size: 1.1rem;
  margin-bottom: 18px;
  color: #fff;
  font-weight: 700;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding-bottom: 12px;
}

.widget-promo {
  text-align: center;
  background: linear-gradient(180deg, rgba(16, 28, 56, 0.9) 0%, rgba(8, 14, 28, 0.95) 100%);
  border-color: rgba(0, 242, 254, 0.4);
  box-shadow: 0 10px 30px rgba(0, 242, 254, 0.1);
}

.widget-promo-icon {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  background: var(--gradient-tech);
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.widget-promo-icon svg {
  width: 28px;
  height: 28px;
  fill: #070b14;
}

.widget-promo h3 {
  font-size: 1.3rem;
  margin-bottom: 8px;
}

.widget-promo p {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.widget-promo .btn {
  width: 100%;
}

.sidebar-node-list {
  list-style: none;
}

.sidebar-node-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  font-size: 0.9rem;
}

.sidebar-node-item:last-child {
  border-bottom: none;
}

.sidebar-node-ping {
  font-family: monospace;
  font-weight: 700;
  color: var(--accent-green);
}

@media (max-width: 992px) {
  .article-layout {
    grid-template-columns: 1fr;
  }
  .article-sidebar {
    position: static;
  }
}
