/* 协会新闻 — 对齐小程序 associationNewsList / associationNewsDetail / galaxy-home */

.hidden {
  display: none !important;
}

.news-page {
  background: var(--bg);
  flex: 1;
}

.news-card {
  margin-bottom: 0;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.news-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}

.news-card-hit {
  display: block;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

.news-card-hit:hover .news-card-title {
  color: var(--primary);
}

.news-card-foot {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 0 16px 16px;
}

.news-card-views {
  font-size: 0.82rem;
  color: var(--text-light);
}

.news-card-cover-wrap {
  width: 100%;
  height: 180px;
  background: var(--border);
  overflow: hidden;
}

.news-card-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.news-card-cover--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary-mid) 0%, var(--primary) 55%, var(--primary-dark) 100%);
  color: #fff;
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: 2px;
}

.news-card-body {
  padding: 14px 16px 16px;
}

.news-card-title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--text);
  line-height: 1.45;
  word-break: break-word;
}

.news-card-meta {
  margin-top: 10px;
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  font-size: 0.82rem;
  color: var(--text-light);
}

.news-card-meta .meta-date {
  color: var(--text-light);
}

.news-list-loading,
.news-list-more {
  text-align: center;
  padding: 16px;
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* 详情页 */
.news-detail-page {
  background: var(--bg);
  min-height: calc(100vh - 80px);
  padding-bottom: 88px;
}

.news-detail-loading,
.news-detail-empty {
  max-width: 720px;
  margin: 0 auto;
  padding: 48px 16px;
  text-align: center;
  color: var(--text-muted);
}

.news-detail-card {
  max-width: 720px;
  margin: 0 auto;
  padding: 16px;
}

.news-detail-header {
  background: #fff;
  border-radius: 14px;
  padding: 20px 18px 16px;
  box-shadow: 0 4px 20px rgba(22, 60, 95, 0.06);
  margin-bottom: 12px;
}

.news-detail-title {
  margin: 0 0 14px;
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.35;
  word-break: break-word;
}

.news-detail-author {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-light);
}

.news-detail-author-name {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
}

.news-detail-author-time {
  font-size: 0.82rem;
  color: var(--text-muted);
  padding-left: 10px;
  border-left: 1px solid var(--border);
}

.news-detail-stats {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.news-stat-pill {
  font-size: 0.82rem;
  color: var(--primary);
  background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary-light) 100%);
  padding: 6px 14px;
  border-radius: 999px;
  font-weight: 600;
}

.news-stat-pill--like {
  color: var(--accent-dark);
  background: linear-gradient(135deg, var(--accent-light) 0%, var(--accent-light) 100%);
}

.news-like-btn {
  cursor: pointer;
  border: none;
  font-family: inherit;
  line-height: 1.2;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.news-like-btn:hover:not(:disabled) {
  transform: scale(1.03);
  box-shadow: 0 2px 8px rgba(194, 65, 12, 0.2);
}

.news-like-btn.is-liked {
  color: #fff;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent) 100%);
}

.news-like-btn:disabled {
  opacity: 0.65;
  cursor: wait;
}

.news-like-btn__icon {
  margin-right: 2px;
}

.news-detail-article {
  background: #fff;
  border-radius: 14px;
  padding: 8px 18px 24px;
  box-shadow: 0 4px 20px rgba(22, 60, 95, 0.06);
}

.news-paragraph {
  margin: 0 0 14px;
  font-size: 1rem;
  line-height: 1.8;
  color: var(--text-secondary);
  text-indent: 2em;
  word-break: break-word;
}

.news-article-image {
  width: 100%;
  border-radius: 10px;
  margin: 12px 0 18px;
  background: var(--bg);
  border: 1px solid rgba(17, 24, 39, 0.06);
  display: block;
  cursor: zoom-in;
}

.news-back-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 12px;
  color: var(--primary);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
}

.news-back-link:hover {
  text-decoration: underline;
}

/* 首页预览 — galaxy 风格 */
.home-news-section {
  background: var(--card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  padding: 20px 20px 22px;
}

.home-news-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.home-news-title-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.home-news-bar {
  width: 4px;
  height: 22px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--accent) 0%, var(--accent-dark) 100%);
  flex-shrink: 0;
}

.home-news-title {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text);
}

.home-news-link {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--accent-dark);
  text-decoration: none;
}

.home-news-link:hover {
  text-decoration: underline;
}

.home-news-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.home-news-item {
  display: block;
  text-decoration: none;
  color: inherit;
}

.home-news-card {
  display: flex;
  align-items: stretch;
  min-height: 88px;
  border-radius: 14px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 4px 16px rgba(26, 35, 56, 0.07);
  transition: transform 0.15s ease, opacity 0.15s ease;
}

.home-news-item:hover .home-news-card {
  transform: scale(0.995);
  opacity: 0.96;
}

.home-news-cover-wrap {
  width: 96px;
  height: 72px;
  flex-shrink: 0;
  align-self: center;
  margin: 12px 0 12px 12px;
  border-radius: 10px;
  overflow: hidden;
  background: var(--bg-alt);
}

.home-news-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.home-news-cover--placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, var(--accent-light) 0%, var(--accent-light) 100%);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent-dark);
  letter-spacing: 2px;
}

.home-news-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 10px 14px 10px 12px;
}

.home-news-card-title {
  margin: 0 0 8px;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.45;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.home-news-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.home-news-unit {
  flex: 1;
  min-width: 0;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--accent-dark);
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(var(--accent-rgb), 0.08);
  border: 1px solid rgba(var(--accent-rgb), 0.12);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-news-date {
  flex-shrink: 0;
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 500;
}

.home-news-empty {
  padding: 28px 16px;
  text-align: center;
  border-radius: 12px;
  background: rgba(var(--accent-rgb), 0.06);
  border: 1px dashed rgba(var(--accent-rgb), 0.18);
  color: var(--text-muted);
  font-size: 0.9rem;
}

.home-news-loading {
  padding: 24px;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
}

@media (min-width: 769px) {
  .news-card-cover-wrap {
    height: 220px;
  }
}
