/* ==========================================================================
   TAG机场知识库与教程文章专用样式 (Article CSS)
   ========================================================================== */

.article-hero {
  padding: 50px 0 35px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: radial-gradient(circle at 80% 20%, rgba(255, 42, 75, 0.08), transparent 60%);
}

.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 20px;
}
.breadcrumbs a {
  color: var(--text-muted);
  text-decoration: none;
}
.breadcrumbs a:hover {
  color: var(--accent-cyan);
}
.breadcrumbs .sep {
  opacity: 0.4;
}

.article-header-title {
  font-size: 2.4rem;
  font-weight: 900;
  color: #fff;
  line-height: 1.28;
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}

.article-meta-bar {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 0.88rem;
  color: var(--text-muted);
}
.article-meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
}
.article-tag-badge {
  background: rgba(0, 243, 255, 0.12);
  color: var(--accent-cyan);
  border: 1px solid rgba(0, 243, 255, 0.3);
  padding: 3px 10px;
  border-radius: 4px;
  font-size: 0.78rem;
  font-weight: 700;
}

/* 文章主体布局 (双栏，左侧正文，右侧目录与推荐) */
.article-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 45px;
  padding: 45px 0 80px;
  align-items: start;
}

.article-content {
  color: #d8dbe5;
  font-size: 1.05rem;
  line-height: 1.85;
}

.article-content h2 {
  font-size: 1.65rem;
  color: #fff;
  margin: 38px 0 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
  position: relative;
}
.article-content h2::before {
  content: '';
  position: absolute;
  bottom: -1px; left: 0;
  width: 40px; height: 2px;
  background: var(--accent-cyan);
}

.article-content h3 {
  font-size: 1.3rem;
  color: #f1f3f9;
  margin: 26px 0 12px;
}

.article-content p {
  margin-bottom: 18px;
}

.article-content ul, .article-content ol {
  margin: 0 0 20px 24px;
}
.article-content li {
  margin-bottom: 8px;
}

.article-content strong {
  color: #fff;
}

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

/* 提示警示框 */
.article-callout {
  padding: 18px 22px;
  border-radius: var(--radius-sm);
  margin: 24px 0;
  background: rgba(18, 20, 30, 0.85);
  border-left: 4px solid var(--accent-cyan);
  font-size: 0.98rem;
}
.article-callout.warning {
  border-left-color: var(--accent-red);
  background: rgba(255, 42, 75, 0.08);
}
.article-callout.tip {
  border-left-color: var(--accent-yellow);
  background: rgba(255, 230, 0, 0.08);
}

/* 步骤条卡片 */
.step-box {
  background: rgba(14, 16, 24, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: var(--radius-sm);
  padding: 20px 24px;
  margin-bottom: 20px;
}
.step-number {
  display: inline-block;
  background: var(--accent-red);
  color: #fff;
  font-weight: 800;
  font-size: 0.8rem;
  padding: 2px 10px;
  border-radius: 4px;
  margin-bottom: 10px;
}

/* 表格样式 */
.article-table-wrap {
  overflow-x: auto;
  margin: 25px 0;
}
.article-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.93rem;
}
.article-table th, .article-table td {
  padding: 12px 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  text-align: left;
}
.article-table th {
  background: rgba(20, 22, 33, 0.9);
  color: #fff;
}
.article-table tr:nth-child(even) {
  background: rgba(255, 255, 255, 0.02);
}

/* 文章内的专属 TAG 机场直达横幅 */
.article-cta-box {
  background: linear-gradient(135deg, rgba(255, 42, 75, 0.18) 0%, rgba(0, 243, 255, 0.12) 100%);
  border: 1px solid rgba(255, 42, 75, 0.4);
  border-radius: var(--radius-md);
  padding: 28px;
  margin: 40px 0;
  text-align: center;
}
.article-cta-box h3 {
  font-size: 1.4rem;
  color: #fff;
  margin-bottom: 8px;
}
.article-cta-box p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 20px;
}

/* 侧边栏目录与热推 */
.article-sidebar {
  position: sticky;
  top: 95px;
}
.sidebar-widget {
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: var(--radius-md);
  padding: 24px;
  margin-bottom: 24px;
}
.widget-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 16px;
}
.toc-list {
  list-style: none;
  font-size: 0.88rem;
}
.toc-list li {
  margin-bottom: 10px;
}
.toc-list a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}
.toc-list a:hover {
  color: var(--accent-cyan);
}
.sidebar-articles-list {
  list-style: none;
  font-size: 0.9rem;
}
.sidebar-articles-list li {
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.05);
}
.sidebar-articles-list a {
  color: #d1d5db;
  text-decoration: none;
  transition: color 0.2s;
  display: block;
  line-height: 1.45;
}
.sidebar-articles-list a:hover {
  color: var(--accent-cyan);
}

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