/* Modern Minimalist UI for airbus-app-blog */

:root {
  --text-main: #0f172a;
  --text-body: #334155;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  --bg-page: #f8fafc;
  --bg-card: #ffffff;
  --border-card: #e2e8f0;
  --border-hover: #cbd5e1;
  --shadow-card: 0 1px 3px 0 rgba(0, 0, 0, 0.04), 0 1px 2px -1px rgba(0, 0, 0, 0.02);
  --shadow-hover: 0 8px 16px -4px rgba(0, 0, 0, 0.06), 0 2px 4px -2px rgba(0, 0, 0, 0.02);
}

html {
  overflow-y: scroll; /* 强制保留右侧垂直滚动槽，彻底消除因不同 Tab 内容长度差异导致的页面向右抖动与偏移 */
  overflow-x: clip; /* 消除意外横向溢出，同时不破坏 position: sticky 针对视口的吸顶跟随 */
  scrollbar-gutter: stable;
}

body {
  overflow: visible !important;
  max-width: 100%;
}

/* 全局主容器：确保任何 PC 屏幕宽度或缩放时，两边始终留有舒适的呼吸空间 */
.w-container {
  max-width: 1040px !important;
  width: 100% !important;
  padding-left: clamp(20px, 3.5vw, 36px) !important;
  padding-right: clamp(20px, 3.5vw, 36px) !important;
  box-sizing: border-box !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

.content-wrapper {
  background-color: var(--bg-page) !important;
  padding-top: 28px;
  padding-bottom: 50px;
  min-height: calc(100vh - 140px);
  width: 100%;
  box-sizing: border-box;
}

/* 顶部导航 */
.navigation-bar {
  background-color: #ffffff !important;
  border-bottom: 1px solid var(--border-card);
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.02);
  padding: 12px 0;
  width: 100%;
  box-sizing: border-box;
}

.navigation-bar .w-container {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
}

.brand-wrapper {
  display: inline-flex !important;
  align-items: center !important;
  gap: 10px !important;
  text-decoration: none !important;
  padding: 0 !important;
  margin-left: 0 !important;
}

@media screen and (max-width: 991px) {
  .navigation-bar {
    padding: 10px 0 !important;
  }

  .navigation-bar .w-container {
    padding-left: 20px !important;
    padding-right: 20px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
  }

  .brand-wrapper {
    padding-left: 0 !important;
    margin-left: 0 !important;
  }

  .menu-button.w-nav-button {
    margin-right: -6px !important;
  }
}

.brand-logo-badge {
  width: 30px;
  height: 30px;
  background-color: #0f172a;
  border-radius: 7px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.15), 0 1px 2px rgba(15, 23, 42, 0.08);
  flex-shrink: 0;
  transition: transform 0.15s ease, background-color 0.15s ease;
}

.brand-wrapper:hover .brand-logo-badge {
  background-color: #1e293b;
  transform: translateY(-1px);
}

.brand-text-wrapper {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
}

.site-brand-text {
  font-size: 1.15rem !important;
  font-weight: 700 !important;
  color: var(--text-main) !important;
  letter-spacing: -0.015em !important;
  line-height: 1 !important;
}

.site-brand-sub {
  font-size: 11.5px;
  font-weight: 500;
  color: #94a3b8;
  letter-spacing: 0.03em;
  padding-left: 8px;
  border-left: 1px solid #e2e8f0;
  line-height: 1;
}

@media screen and (max-width: 480px) {
  .site-brand-sub {
    display: none;
  }
}

.menu-button.w-nav-button {
  padding: 6px 10px !important;
  border-radius: 6px !important;
  color: #0f172a !important;
  margin-top: 1px;
}

.menu-button.w-nav-button.w--open {
  background-color: #f1f5f9 !important;
  color: #0f172a !important;
}

.menu-button .w-icon-nav-menu {
  font-size: 20px !important;
}

.navigation-menu {
  display: flex;
  align-items: center;
  gap: 12px;
}

.navigation-link {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  padding: 8px 14px;
  border-radius: 6px;
  transition: all 0.15s ease;
  text-decoration: none;
}

.navigation-link:hover {
  color: var(--text-main);
  background-color: #f1f5f9;
  text-decoration: none;
}

/* 搜索容器 */
.search-container {
  position: relative;
  margin: 0 0 24px 0;
}

.search-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.search-icon-svg {
  position: absolute;
  left: 16px;
  width: 17px;
  height: 17px;
  color: #94a3b8;
  pointer-events: none;
}

.search-container input {
  width: 100%;
  height: 44px;
  padding: 10px 18px 10px 44px;
  border: 1px solid var(--border-card);
  border-radius: 10px;
  background-color: #ffffff;
  box-shadow: var(--shadow-card);
  font-size: 14px;
  color: var(--text-main);
  outline: none;
  transition: all 0.2s ease;
}

.search-container input:focus {
  border-color: #94a3b8;
  box-shadow: 0 0 0 3px rgba(148, 163, 184, 0.15);
}

/* 文章卡片：彻底移除双层嵌套背景与阴影，仅单层卡片 */
.post-wrapper {
  margin-bottom: 20px !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  border-radius: 0 !important;
}

.post-content {
  background: #ffffff !important;
  border: 1px solid var(--border-card) !important;
  border-radius: 12px !important;
  padding: 20px !important;
  box-shadow: var(--shadow-card) !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease !important;
}

.post-content:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover) !important;
  border-color: var(--border-hover) !important;
}

/* Flex 左右排版，确保图片与文字拥有明确间隔 */
.post-card-inner {
  display: flex !important;
  align-items: stretch !important;
  gap: 22px !important; /* 关键：固定 22px 间距，彻底消除贴紧问题 */
}

.post-card-media {
  flex: 0 0 230px !important;
  width: 230px !important;
  height: 155px !important;
  border-radius: 8px !important;
  overflow: hidden !important;
  background-color: #f1f5f9;
}

.blog-image {
  width: 100%;
  height: 100%;
  display: block;
  background-size: cover;
  background-position: center;
  transition: transform 0.3s ease;
  margin-right: 0 !important; /* 移除旧的 margin 干扰 */
}

.post-content:hover .blog-image {
  transform: scale(1.02);
}

.blog-image-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  color: #94a3b8;
}

.post-card-body {
  flex: 1 1 auto !important;
  min-width: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
}

.blog-title-link {
  text-decoration: none;
  display: block;
}

.blog-title {
  font-size: 1.18rem !important;
  font-weight: 600 !important;
  line-height: 1.45 !important;
  color: var(--text-main) !important;
  margin-top: 0 !important;
  margin-bottom: 8px !important;
  transition: color 0.15s ease;
}

.blog-title-link:hover .blog-title {
  color: #475569 !important;
}

/* 元数据排版：极简杂志风，圆点分隔，不堆砌繁复象形图标 */
.details-wrapper {
  display: flex !important;
  align-items: center !important;
  flex-wrap: wrap !important;
  gap: 8px 10px !important;
  margin-bottom: 10px !important;
  font-size: 13px !important;
  color: var(--text-muted) !important;
}

.meta-dot {
  color: #cbd5e1;
  font-size: 12px;
}

.post-date-text {
  font-size: 13px;
  color: var(--text-muted);
}

.post-tag-badge {
  display: inline-flex;
  align-items: center;
  padding: 1px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 500;
  background-color: #f1f5f9;
  color: #475569;
  border: 1px solid #e2e8f0;
  text-decoration: none;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.post-tag-badge:hover {
  background-color: #e2e8f0;
  color: var(--text-main);
  text-decoration: none;
}

.post-summary {
  font-size: 13.5px !important;
  color: #475569 !important;
  line-height: 1.6 !important;
  display: -webkit-box !important;
  -webkit-line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
  margin-bottom: 12px !important;
}

.read-more-link {
  display: inline-flex !important;
  align-items: center !important;
  gap: 4px !important;
  color: var(--text-main) !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  text-decoration: none !important;
  transition: all 0.15s ease !important;
}

.read-more-link:hover {
  color: #475569 !important;
  text-decoration: none !important;
  transform: translateX(3px) !important;
}

/* 侧边栏 */
.white-wrapper {
  background: var(--bg-card) !important;
  border: 1px solid var(--border-card) !important;
  border-radius: 12px !important;
  padding: 24px 20px !important;
  box-shadow: var(--shadow-card) !important;
  text-align: center !important;
}

.circle-profile {
  width: 92px !important;
  height: 92px !important;
  border-radius: 50% !important;
  object-fit: cover !important;
  margin: 0 auto 14px !important;
  border: 3px solid #f1f5f9 !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06) !important;
  display: block !important;
}

.profile-name {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 4px;
}

.profile-title {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.profile-quote-block {
  background: #f8fafc;
  border-left: 3px solid #cbd5e1;
  border-radius: 0 8px 8px 0;
  padding: 12px 14px;
  text-align: left;
  margin: 0;
}

.site-description {
  font-size: 13px;
  color: #475569;
  line-height: 1.65;
  margin: 0;
  font-style: normal;
}

/* 侧边栏卡片细化与扩展设计 */
.sidebar-divider {
  height: 1px;
  background-color: #f1f5f9;
  margin: 18px 0 16px 0;
}

.sidebar-section {
  text-align: left;
}

.sidebar-section-title {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  font-weight: 600;
  color: #64748b;
  letter-spacing: 0.04em;
  margin-bottom: 12px;
}

.sidebar-stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.sidebar-stat-item {
  background-color: #f8fafc;
  border: 1px solid #f1f5f9;
  border-radius: 8px;
  padding: 10px 8px;
  text-align: center;
  transition: all 0.15s ease;
}

.sidebar-stat-item:hover {
  background-color: #f1f5f9;
  border-color: #e2e8f0;
}

.stat-number {
  display: block;
  font-size: 16px;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.2;
}

.stat-label {
  display: block;
  font-size: 11px;
  color: #64748b;
  margin-top: 3px;
}

.sidebar-tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.sidebar-tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 9px;
  background-color: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  font-size: 11.5px;
  color: #475569;
  font-weight: 500;
  transition: all 0.15s ease;
}

.sidebar-tag:hover {
  background-color: #0f172a;
  border-color: #0f172a;
  color: #ffffff;
  cursor: default;
}

/* 桌面端侧边栏吸顶跟随 (Sticky Sidebar) */
@media screen and (min-width: 992px) {
  .content-wrapper .w-row {
    display: flex !important;
    align-items: flex-start !important;
    gap: 26px !important;
  }
  .content-wrapper .w-row:before,
  .content-wrapper .w-row:after {
    display: none !important;
  }
  .sidebar-column {
    flex: 0 0 260px !important;
    width: 260px !important;
    max-width: 260px !important;
    position: -webkit-sticky !important;
    position: sticky !important;
    top: 24px !important;
    align-self: flex-start !important;
    padding: 0 !important;
    z-index: 10 !important;
  }
  .sidebar-card {
    position: -webkit-sticky !important;
    position: sticky !important;
    top: 24px !important;
  }
  .content-column {
    flex: 1 1 0% !important;
    min-width: 0 !important;
    width: auto !important;
    padding: 0 !important;
  }
}


/* 分页器 */
.button-wrapper {
  margin-top: 10px;
  margin-bottom: 30px;
}

.pager {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  gap: 14px !important;
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

.pager li {
  width: auto !important;
  display: inline-block !important;
}

.pager li a {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  height: 38px !important;
  padding: 0 18px !important;
  border-radius: 8px !important;
  border: 1px solid var(--border-card) !important;
  background: #ffffff !important;
  color: var(--text-body) !important;
  font-size: 13.5px !important;
  font-weight: 500 !important;
  text-decoration: none !important;
  transition: all 0.15s ease !important;
  box-shadow: var(--shadow-card) !important;
  margin: 0 !important;
}

.pager li a:hover {
  border-color: var(--border-hover) !important;
  background-color: #f8fafc !important;
  color: var(--text-main) !important;
}

.pager li.disabled a {
  color: #cbd5e1 !important;
  border-color: #f1f5f9 !important;
  background: #ffffff !important;
  pointer-events: none !important;
  box-shadow: none !important;
}

.pager li.active a {
  background: #0f172a !important;
  color: #ffffff !important;
  border-color: #0f172a !important;
  font-weight: 600 !important;
  box-shadow: 0 2px 4px rgba(15, 23, 42, 0.15) !important;
}

.pager li.pager-info-item {
  display: inline-flex !important;
  align-items: center !important;
  font-size: 13px !important;
  color: var(--text-muted) !important;
  padding: 0 4px !important;
}

.quote-card-item.quote-hidden {
  display: none !important;
}

/* 响应式适配 */
@media (max-width: 767px) {
  .post-card-inner {
    flex-direction: column !important;
    gap: 14px !important;
  }
  .post-card-media {
    flex: 0 0 auto !important;
    width: 100% !important;
    height: 180px !important;
  }
}

/* 页脚 */
#footer {
  border-top: 1px solid var(--border-card);
  background-color: #ffffff;
}

#footer a {
  color: var(--text-muted);
  text-decoration: none;
}

#footer a:hover {
  color: var(--text-main);
}

/* 历史箴言卡片样式 */
.quote-card-content {
  padding: 24px 28px !important;
}

.quote-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.quote-latest-badge {
  display: inline-flex;
  align-items: center;
  padding: 1px 7px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  background-color: #0f172a;
  color: #ffffff;
  letter-spacing: 0.02em;
}

.quote-text-body {
  font-size: 15.5px;
  line-height: 1.8;
  color: #1e293b;
  font-weight: 450;
  letter-spacing: 0.01em;
  word-break: break-word;
}

/* 统一单页面 Tab 控制器：
   PC 桌面端直接由顶部导航栏切换，隐藏下方重复按钮，界面更清爽；
   移动端顶部导航折叠在右上角汉堡菜单中，保留内容流上方的快捷 Tab 栏，方便拇指一触即达。
*/
.content-tab-nav {
  display: none !important; /* PC 桌面端默认隐藏 */
}

@media screen and (max-width: 991px) {
  .content-tab-nav {
    display: flex !important;
    align-items: center;
    gap: 6px;
    margin-bottom: 20px;
    background-color: #f1f5f9;
    padding: 4px;
    border-radius: 9px;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}

.content-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 16px;
  border-radius: 7px;
  border: none;
  background: transparent;
  color: #64748b;
  font-size: 13.5px;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
}

.content-tab-btn:hover {
  color: #0f172a;
}

.content-tab-btn.active {
  background: #ffffff;
  color: #0f172a;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  font-weight: 600;
}

.content-tab-panel {
  display: none;
  animation: fadeIn 0.18s ease-in-out;
}

.content-tab-panel.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

.nav-tab-link.active {
  color: #0f172a !important;
  font-weight: 600 !important;
  background-color: #f1f5f9 !important;
}

/* 文章详情页全文正文排版（解决被 line-clamp 截断问题） */
.article-body-content {
  font-size: 15.5px;
  line-height: 1.85;
  color: #334155;
  word-break: break-word;
  overflow: visible !important;
  display: block !important;
}

.article-body-content p {
  margin-top: 0;
  margin-bottom: 1.35em;
  line-height: 1.85;
  color: #334155;
}

.article-body-content h1,
.article-body-content h2,
.article-body-content h3,
.article-body-content h4,
.article-body-content h5,
.article-body-content h6 {
  color: #0f172a;
  font-weight: 650;
  line-height: 1.45;
  margin-top: 2em;
  margin-bottom: 0.85em;
}

.article-body-content h2 {
  font-size: 1.35rem;
  border-bottom: 1px solid #e2e8f0;
  padding-bottom: 8px;
}

.article-body-content h3 {
  font-size: 1.2rem;
}

.article-body-content h4 {
  font-size: 1.05rem;
}

.article-body-content strong {
  color: #0f172a;
  font-weight: 600;
}

.article-body-content img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 20px auto;
  display: block;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.article-body-content blockquote {
  border-left: 3px solid #94a3b8;
  padding: 10px 18px;
  margin: 20px 0;
  background-color: #f8fafc;
  border-radius: 0 8px 8px 0;
  color: #475569;
}

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

.article-body-content li {
  margin-bottom: 0.45em;
  line-height: 1.75;
}

.article-body-content code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.88em;
  background: #f1f5f9;
  color: #0f172a;
  padding: 2px 6px;
  border-radius: 4px;
}

.article-body-content pre {
  background: #1e293b;
  border-radius: 8px;
  padding: 16px;
  overflow-x: auto;
  margin: 20px 0;
}

.article-body-content pre code {
  background: transparent;
  padding: 0;
  color: #f8fafc;
}

.article-body-content hr {
  border: none;
  border-top: 1px solid #e2e8f0;
  margin: 32px 0;
}

