/* column.css - 移动应用风格专栏列表页 */
.column-body {
  padding-bottom: 70px;
  background: #f6f7f9;
}

/* 顶部应用标题栏 */
.app-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 54px;
  padding: 0 14px;
  background: #fff;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.app-back {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  font-size: 22px;
  color: #12231e;
  text-decoration: none;
  border-radius: 50%;
}

.app-back:active {
  background: #f0f0f0;
}

.app-title {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  font-size: 17px;
  font-weight: 700;
  color: #12231e;
  margin: 0;
}

.app-header-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.app-search,
.app-more {
  width: 32px;
  height: 32px;
  border: 0;
  background: transparent;
  font-size: 18px;
  color: #12231e;
  cursor: pointer;
  border-radius: 50%;
  display: grid;
  place-items: center;
}

.app-search:active,
.app-more:active {
  background: #f0f0f0;
}

/* 分类 Tab 横向滚动 */
.column-tabs {
  position: sticky;
  top: 54px;
  z-index: 25;
  display: flex;
  gap: 8px;
  padding: 10px 14px;
  background: #f6f7f9;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.column-tabs::-webkit-scrollbar {
  display: none;
}

.column-tab {
  flex: 0 0 auto;
  padding: 8px 16px;
  border: 0;
  border-radius: 999px;
  background: #fff;
  color: #596c59;
  font-size: 13px;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.column-tab.active {
  background: #143d31;
  color: #fff;
  font-weight: 600;
}

/* 文章列表 */
.column-feed {
  padding: 6px 14px 20px;
}

.column-article-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.column-article {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 12px;
  padding: 12px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 8px rgba(18, 35, 30, 0.04);
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.column-article:active {
  transform: scale(0.985);
}

.column-article-cover {
  width: 100px;
  height: 76px;
  border-radius: 10px;
  background: #e8eeea;
  flex-shrink: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.column-article-cover img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  background: #e8eeea;
}

.column-article-info {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-width: 0;
  padding: 1px 0;
  gap: 8px;
}

.column-article-info h2 {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.45;
  color: #12231e;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.column-article-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 8px;
  font-size: 12px;
  color: #8a9a92;
  line-height: 1.2;
}

.column-article-category {
  flex: 0 0 auto;
  padding: 2px 8px;
  border-radius: 999px;
  background: #e8f5ef;
  color: #0d8a6a;
  font-size: 11px;
}

.column-article-views {
  flex: 1 0 auto;
  text-align: right;
  margin-left: auto;
}

/* 空状态 */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: #8a9a92;
}

.empty-state span {
  font-size: 48px;
  opacity: 0.35;
}

.empty-state h2 {
  font-size: 18px;
  color: #12231e;
  margin: 14px 0 6px;
}

.empty-state a {
  display: inline-block;
  margin-top: 16px;
  padding: 10px 22px;
  border-radius: 999px;
  background: #143d31;
  color: #fff;
  font-size: 14px;
}

/* 底部固定导航 */
.bottom-nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  display: flex;
  justify-content: space-around;
  align-items: center;
  height: 62px;
  padding-bottom: env(safe-area-inset-bottom, 0);
  background: #fff;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  flex: 1;
  height: 100%;
  color: #8a9a92;
  font-size: 11px;
  text-decoration: none;
}

.bottom-nav-item.active {
  color: #143d31;
  font-weight: 600;
}

.bottom-nav-icon {
  font-size: 22px;
  line-height: 1;
}

.bottom-nav.hidden {
  transform: translateY(100%);
  transition: transform 0.25s ease;
}

/* 阅读器覆盖样式 */
.article-reader article {
  padding-bottom: 90px;
}

/* 预览提示条在 app-header 下方 */
.preview-article-banner {
  position: sticky;
  top: 54px;
  z-index: 24;
}

/* PC 端居中容器 */
@media (min-width: 760px) {
  .column-feed,
  .column-tabs {
    max-width: 680px;
    margin-left: auto;
    margin-right: auto;
  }
}

/* 搜索输入框（展开态） */
.app-search-bar {
  position: fixed;
  inset: 0;
  z-index: 35;
  background: #fff;
  display: none;
  flex-direction: column;
}

.app-search-bar.open {
  display: flex;
}

.app-search-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.app-search-header input {
  flex: 1;
  height: 38px;
  padding: 0 14px;
  border: 1px solid #e0e5e2;
  border-radius: 999px;
  font-size: 14px;
  outline: none;
}

.app-search-header input:focus {
  border-color: #143d31;
}

.app-search-results {
  flex: 1;
  overflow-y: auto;
  padding: 10px 14px;
}
