/* ===========================================================
   Groww H5 — News / 新闻详情 / 个股 News / Events
   （news-events-1/2/3/4）
   =========================================================== */

/* ---------- 共用 ---------- */
.gw-empty {
  padding: 28px 16px;
  text-align: center;
  font-size: 13px;
  color: var(--gw-ink-3);
}
.gw-see-all { font-size: 13px; font-weight: var(--gw-fw-semi); color: var(--gw-green); text-decoration: none; }

/* 铃铛红点 */
.gw-bell-dot { position: relative; }
.gw-bell-dot::after {
  content: '';
  position: absolute;
  top: 7px;
  right: 8px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gw-down);
  border: 1.5px solid #fff;
}

/* ---------- Market News ---------- */
.gw-news { padding-bottom: 24px; }

.gw-news-titlebar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-right: var(--gw-pad);
}
.gw-news-titlebar .gw-page-title { padding-right: 0; }
.gw-news-filter {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 0;
  border: none;
  background: none;
  font-size: 13px;
  color: var(--gw-ink-2);
}
.gw-news-filter .gw-icon { width: 17px; height: 17px; }

.gw-news-chips { padding-bottom: 12px; }

/* Breaking 红色横条 */
.gw-breaking {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 0 var(--gw-pad) 12px;
  padding: 11px 12px;
  border-radius: var(--gw-r-md);
  background: var(--gw-down-soft);
  font-size: 13px;
}
.gw-breaking-label { font-weight: var(--gw-fw-bold); color: var(--gw-down); flex: 0 0 auto; }
.gw-breaking-text {
  flex: 1;
  min-width: 0;
  color: var(--gw-ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.gw-breaking-arrow { color: var(--gw-down); font-size: 17px; flex: 0 0 auto; }

/* 新闻卡 */
.gw-news-list { padding: 0 var(--gw-pad); display: flex; flex-direction: column; gap: 12px; }
.gw-news-card {
  display: flex;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--gw-line);
  border-radius: var(--gw-r-lg);
  background: #fff;
  text-decoration: none;
  color: inherit;
}
.gw-news-thumb {
  width: 46px;
  height: 46px;
  flex: 0 0 auto;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10.5px;
  font-weight: var(--gw-fw-bold);
  color: #24506e;
  letter-spacing: 0.2px;
  overflow: hidden;
}
.gw-news-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 5px; }
.gw-news-body strong {
  font-size: 15px;
  font-weight: var(--gw-fw-bold);
  color: var(--gw-ink);
  line-height: 1.3;
}
.gw-news-meta { font-style: normal; font-size: 11.5px; color: var(--gw-ink-3); }
.gw-news-body p {
  margin: 2px 0 0;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--gw-ink-2);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ---------- 新闻详情 ---------- */
.gw-news-detail { padding-bottom: 24px; }
.gw-news-article { padding: 4px var(--gw-pad) 0; }
.gw-news-article h1 {
  margin: 0 0 8px;
  font-size: 21px;
  font-weight: var(--gw-fw-bold);
  line-height: 1.3;
  color: var(--gw-ink);
}
.gw-news-article-meta { margin: 0 0 16px; font-size: 12.5px; color: var(--gw-ink-3); }
.gw-news-article p {
  margin: 0 0 14px;
  font-size: 14.5px;
  line-height: 1.62;
  color: var(--gw-ink-2);
}

/* 关联股票卡 */
.gw-news-stock {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 4px var(--gw-pad) 0;
  padding: 12px 14px;
  border: 1px solid var(--gw-line);
  border-radius: var(--gw-r-lg);
  text-decoration: none;
  color: inherit;
}
.gw-news-stock-names { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.gw-news-stock-names strong { font-size: 16px; font-weight: var(--gw-fw-bold); color: var(--gw-ink); }
.gw-news-stock-names em { font-style: normal; font-size: 12px; color: var(--gw-ink-3); }
.gw-news-stock-right { display: flex; flex-direction: column; align-items: flex-end; gap: 3px; }
.gw-news-stock-right strong { font-size: 16px; font-weight: var(--gw-fw-bold); color: var(--gw-ink); }
.gw-news-stock-right em { font-style: normal; font-size: 13px; font-weight: var(--gw-fw-semi); }
.gw-news-chevron { font-size: 20px; color: var(--gw-ink-3); line-height: 1; }

/* Related stories */
.gw-news-related { padding: 0 var(--gw-pad); }
.gw-news-related-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  text-decoration: none;
  color: inherit;
}
.gw-news-related-row + .gw-news-related-row { border-top: 1px solid var(--gw-line-2); }
.gw-news-related-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.gw-news-related-body strong { font-size: 14px; font-weight: var(--gw-fw-bold); color: var(--gw-ink); line-height: 1.35; }
.gw-news-related-body em { font-style: normal; font-size: 11.5px; color: var(--gw-ink-3); }

/* ---------- 个股 News tab ---------- */
.gw-snews { padding-bottom: 24px; }

.gw-snews-quote {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 4px var(--gw-pad) 0;
}
.gw-snews-logo {
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  border-radius: 10px;
}
.gw-snews-names { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.gw-snews-names strong { font-size: 17px; font-weight: var(--gw-fw-bold); color: var(--gw-ink); }
.gw-snews-names em { font-style: normal; font-size: 12px; color: var(--gw-ink-3); }
.gw-snews-names b {
  margin-top: 8px;
  font-size: 24px;
  font-weight: var(--gw-fw-bold);
  color: var(--gw-ink);
  letter-spacing: -0.4px;
}
.gw-snews-names i {
  font-style: normal;
  font-size: 14px;
  font-weight: var(--gw-fw-semi);
  margin-top: 2px;
}
.gw-snews-today { margin-left: 8px; font-size: 12.5px; color: var(--gw-ink-3); font-weight: var(--gw-fw-med); }
.gw-news-spark { width: 130px; height: 44px; flex: 0 0 auto; margin-top: 34px; }

.gw-snews-tabs { gap: 0; justify-content: space-between; margin-top: 14px; padding: 0 var(--gw-pad); }
.gw-snews-tabs .gw-stab { flex: 1; text-align: center; font-size: 14px; }
.gw-snews-chips { padding-top: 14px; }
.gw-snews-list { padding: 0 var(--gw-pad); display: flex; flex-direction: column; gap: 12px; }

.gw-snews-card {
  position: relative;
  display: block;
  padding: 13px 32px 13px 14px;
  border: 1px solid var(--gw-line);
  border-radius: var(--gw-r-lg);
  text-decoration: none;
  color: inherit;
}
.gw-snews-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.gw-snews-tag {
  padding: 4px 9px;
  border-radius: 6px;
  background: var(--gw-green-soft);
  color: var(--gw-green);
  font-size: 11px;
  font-weight: var(--gw-fw-semi);
  white-space: nowrap;
}
.gw-snews-time { font-style: normal; font-size: 11px; color: var(--gw-ink-3); white-space: nowrap; }
.gw-snews-card strong {
  display: block;
  margin-top: 8px;
  font-size: 14.5px;
  font-weight: var(--gw-fw-bold);
  line-height: 1.35;
  color: var(--gw-ink);
}
.gw-snews-card p {
  margin: 6px 0 0;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--gw-ink-2);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.gw-snews-card .gw-news-chevron {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
}

/* ---------- Events ---------- */
.gw-events { padding-bottom: 24px; }

.gw-events-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 52px;
  padding: 0 var(--gw-pad);
}
.gw-events-head h1 {
  margin: 0;
  flex: 1;
  text-align: center;
  font-size: 18px;
  font-weight: var(--gw-fw-bold);
  color: var(--gw-ink);
}

.gw-events-chips { padding-top: 6px; padding-bottom: 14px; }

/* 月历 */
.gw-cal { padding: 0 var(--gw-pad); }
.gw-cal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 0 12px;
}
.gw-cal-nav {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: none;
  color: var(--gw-ink);
}
.gw-cal-month {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 15px;
  font-weight: var(--gw-fw-bold);
  color: var(--gw-ink);
}
.gw-cal-month .gw-icon { width: 16px; height: 16px; }

.gw-cal-week {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  font-size: 12px;
  color: var(--gw-ink-3);
  text-align: center;
  padding-bottom: 6px;
}
.gw-cal-days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.gw-cal-cell {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  height: 46px;
  border-radius: 10px;
  font-size: 14.5px;
  font-weight: var(--gw-fw-med);
  color: var(--gw-ink);
}
.gw-cal-cell.is-today {
  background: var(--gw-green);
  color: #fff;
  font-weight: var(--gw-fw-bold);
}
.gw-cal-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--gw-green);
}
.gw-cal-cell.is-today .gw-cal-dot { background: #fff; }

/* Upcoming events 卡 */
.gw-events-list { padding: 0 var(--gw-pad); display: flex; flex-direction: column; gap: 12px; }
.gw-event-card {
  display: flex;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--gw-line);
  border-radius: var(--gw-r-lg);
  background: #fff;
}
.gw-event-icon {
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  border-radius: 9px;
  background: var(--gw-green-soft);
  color: var(--gw-green);
  display: flex;
  align-items: center;
  justify-content: center;
}
.gw-event-icon .gw-icon { width: 19px; height: 19px; }

.gw-event-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 5px; }
.gw-event-body header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}
.gw-event-body header strong {
  font-size: 15px;
  font-weight: var(--gw-fw-bold);
  color: var(--gw-ink);
  line-height: 1.3;
}
.gw-event-body header em {
  flex: 0 0 auto;
  font-style: normal;
  font-size: 11.5px;
  color: var(--gw-ink-3);
  white-space: nowrap;
}
.gw-event-company { font-size: 12px; color: var(--gw-ink-3); }
.gw-event-body p { margin: 2px 0 0; font-size: 12.5px; line-height: 1.5; color: var(--gw-ink-2); }

.gw-event-body footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 8px;
}
.gw-event-tag {
  padding: 4px 10px;
  border-radius: 6px;
  background: #eef2ff;
  color: #4a5cf5;
  font-size: 11px;
  font-weight: var(--gw-fw-semi);
}
.gw-event-remind {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 32px;
  padding: 0 12px;
  border: 1px solid var(--gw-green);
  border-radius: 8px;
  background: #fff;
  color: var(--gw-green);
  font-size: 12.5px;
  font-weight: var(--gw-fw-semi);
}
.gw-event-remind .gw-icon { width: 15px; height: 15px; }
