/* 资讯卡片样式 */
.news-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  padding: 24px;
  transition: all 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
}
.news-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}
.news-card-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  font-size: 12px;
  padding: 3px 10px;
  border-radius: 4px;
  background: #ff8a00;
  color: #fff;
  font-weight: 500;
}
.news-card-category {
  display: inline-block;
  background: #2053af;
  color: #fff;
  font-size: 12px;
  padding: 4px 12px;
  border-radius: 4px;
  margin-bottom: 12px;
  align-self: flex-start;
}
.news-card-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  color: #1f2873;
}
.news-card-date {
  font-size: 13px;
  color: #999;
  margin-bottom: 10px;
}
.news-card-summary {
  font-size: 14px;
  color: #666;
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex-grow: 1;
  line-height: 1.6;
}
.news-card-btn {
  background: #2053af;
  color: #fff;
  border: none;
  padding: 10px 20px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  align-self: flex-start;
  transition: all 0.3s ease;
}
.news-card-btn:hover {
  opacity: 0.9;
}

/* 支付弹窗 */
.pay-modal-overlay {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.5);
  z-index: 9999;
  justify-content: center;
  align-items: center;
  padding: 16px;
}
.pay-modal-overlay.active {
  display: flex;
}
.pay-modal {
  background: #fff;
  border-radius: 12px;
  width: 100%;
  max-width: 380px;
  animation: modalFadeIn 0.3s ease;
  overflow: hidden;
}
.pay-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 24px;
  border-bottom: 1px solid #eee;
}
.pay-modal-header h4 {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  color: #222;
}
.pay-modal-close {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: #999;
  line-height: 1;
}
.pay-modal-close:hover {
  color: #333;
}
.pay-modal-body {
  padding: 24px;
}
.pay-modal-amount {
  text-align: center;
  margin-bottom: 24px;
}
.pay-modal-amount strong {
  color: #ff8a00;
  font-size: 32px;
}
.pay-modal-amount span {
  font-size: 14px;
  color: #999;
}
.pay-channel-group {
  margin-bottom: 20px;
}
.pay-channel-group label {
  font-size: 14px;
  color: #666;
  margin-bottom: 10px;
  display: block;
}
.pay-channel {
  display: flex;
  align-items: center;
  border: 1px solid #e2e2e2;
  border-radius: 8px;
  padding: 12px 14px;
  cursor: pointer;
  margin-bottom: 8px;
  transition: all 0.2s;
}
.pay-channel:has(input:checked) {
  border-color: #2053af;
  background: #f5f7fc;
}
.pay-channel input {
  margin-right: 12px;
}
.pay-channel-icon {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  margin-right: 10px;
}
.pay-wechat { background: #2ecc71; }
.pay-alipay { background: #1678ff; }
.pay-confirm-btn {
  width: 100%;
  background: #2053af;
  color: #fff;
  border: none;
  padding: 14px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.3s;
}
.pay-confirm-btn:hover {
  opacity: 0.9;
}
.pay-confirm-btn:disabled {
  background: #ccc;
  cursor: not-allowed;
}
.pay-notice {
  text-align: center;
  font-size: 12px;
  color: #bbb;
  margin-top: 12px;
}

@keyframes modalFadeIn {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}
