:root {
  --primary-color: #5468ff;
  --primary-dark: #3d4ecc;
  --text-color: #333;
  --text-light: #666;
  --border-color: #e5e5e5;
  --bg-color: #f8f9fa;
  --shadow-light: 0 2px 8px rgba(0,0,0,0.06);
  --shadow-medium: 0 8px 25px rgba(0,0,0,0.12);
  --free-green: #10b981;
  --free-light-green: rgba(16,185,129,0.1);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; background-color: var(--bg-color); color: var(--text-color); min-height: 100vh; }
.container { max-width: 1200px; margin: 0 auto; padding: 20px 15px; }

.page-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 30px;
  padding: 20px;
  background: #fff;
  border-radius: 12px;
  box-shadow: var(--shadow-light);
}
.page-title {
  font-size: 24px;
  font-weight: 600;
  color: var(--text-color);
  margin-bottom: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  /* 覆盖 home.css 的 left/transform，改用父级 flex 居中 */
  position: relative;
  left: auto;
  transform: none;
}
.page-title i { color: #FF69B4; }
.page-count { font-size: 14px; color: var(--text-light); }

.sort-bar {
  max-width: 1200px;
  margin: 0 auto 20px;
  padding: 0;
  display: flex;
  align-items: center;
}
.sort-label {
  color: #888;
  font-size: 14px;
  margin-right: 10px;
  padding-right: 10px;
  border-right: 1px solid #e0e0e0;
  flex-shrink: 0;
}
.sort-options {
  display: flex;
  align-items: center;
  gap: 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.sort-options::-webkit-scrollbar { display: none; }
.sort-btn {
  padding: 6px 12px;
  border: none;
  background: transparent;
  font-size: 14px;
  color: #999;
  cursor: pointer;
  transition: color 0.2s ease;
  text-decoration: none;
  white-space: nowrap;
}
.sort-btn:hover { color: #333; }
.sort-btn.active { color: #333; font-weight: 500; }

/* 标签页文章列表使用 goods-grid（来自 home.css），此处仅保留页面结构样式 */

/* 卡片样式中 img.screen-img 需要 object-fit（home.css 的 screen-img 为 background-image 的 div） */
.goods-grid.card-style .card-screens img.screen-img {
  object-fit: cover;
  object-position: center top;
}

body.title-lines-1 { --title-lines: 1; }
body.title-lines-2 { --title-lines: 2; }
body.excerpt-lines-1 { --excerpt-lines: 1; }
body.excerpt-lines-2 { --excerpt-lines: 2; }

.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 30px; flex-wrap: wrap; }
.pagination a, .pagination span { padding: 8px 16px; border-radius: 6px; text-decoration: none; font-size: 14px; }
.pagination a { background: #fff; color: var(--text-color); border: 1px solid var(--border-color); transition: all 0.2s; }
.pagination a:hover { background: var(--primary-color); color: #fff; border-color: var(--primary-color); }
.pagination span.current { background: var(--primary-color); color: #fff; }
.pagination span.disabled { background: #f0f0f0; color: #999; cursor: not-allowed; }

.empty-state { text-align: center; padding: 60px 20px; background: #fff; border-radius: 12px; }
.empty-state i { font-size: 48px; color: #ddd; margin-bottom: 15px; display: block; }
.empty-state p { color: var(--text-light); }

@media (max-width: 768px) {
  .sort-bar { margin: 0 auto 15px; }
  .sort-label { font-size: 13px; margin-right: 8px; padding-right: 8px; }
  .sort-btn { padding: 5px 10px; font-size: 13px; }
}
@media (max-width: 480px) {
  .sort-bar { margin: 0 auto 12px; }
  .sort-label { font-size: 12px; margin-right: 6px; padding-right: 6px; }
  .sort-btn { padding: 4px 8px; font-size: 12px; }
}
