/* ============================================================
   Watchpilot · news.css
   段: 资讯 Panel
   (从 hero-panels.css 第 1707-2278 行拆出)
   ============================================================ */

  /* ═════════════════════════════════════════════════════════════════
     资讯 Panel · 华尔街见闻信息组织 + Watchpilot 视觉 DNA
     左 64px 时间戳 + 主区列表 / 右栏 行情+财经日历
     ═════════════════════════════════════════════════════════════════ */
  
  .news-feed-container {
    --ts-important: var(--up);
    --ts-normal: var(--text-3);
    --news-star: #A78A56;
    margin: -32px -32px 0 -32px;
  }
  @media (max-width: 768px) {
    .news-feed-container { margin: 0; }
  }
  
  /* 顶部子 Tab(要闻/A 股/港股/美股/公司/政策/公告/基金)*/
  .news-subnav {
    display: flex;
    align-items: center;
    gap: 28px;
    background: var(--bg-card);
    border-top: 1px solid var(--border-subtle);
    border-bottom: 1px solid var(--border-subtle);
    padding: 0 24px;
    height: 44px;
  }
  .news-subnav-item {
    font-size: 14px;
    color: var(--text-2);
    cursor: pointer;
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
    transition: color 0.12s;
    user-select: none;
    letter-spacing: -0.1px;
  }
  .news-subnav-item:hover { color: var(--text-1); }
  .news-subnav-item.active {
    color: var(--accent);
    font-weight: 600;
  }
  .news-subnav-item.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--accent);
  }
  
  /* 筛选行 */
  .news-filter-row {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 10px 24px;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border-subtle);
    height: 40px;
  }
  .news-current-time {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--text-3);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
    margin-right: auto;
    font-variant-numeric: tabular-nums;
  }
  .live-dot-news {
    width: 6px;
    height: 6px;
    background: var(--down);
    border-radius: 50%;
    animation: live-pulse 2.4s ease-out infinite;
    flex-shrink: 0;
  }
  
  .news-filter-check {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 13px;
    color: var(--text-2);
    cursor: pointer;
    user-select: none;
  }
  .news-filter-check input {
    appearance: none;
    -webkit-appearance: none;
    width: 14px;
    height: 14px;
    border: 1px solid var(--border-strong);
    border-radius: 3px;
    cursor: pointer;
    position: relative;
    background: var(--bg-card);
    margin: 0;
    flex-shrink: 0;
  }
  .news-filter-check input:checked {
    background: var(--accent);
    border-color: var(--accent);
  }
  .news-filter-check input:checked::after {
    content: '';
    position: absolute;
    left: 3px;
    top: 0;
    width: 4px;
    height: 8px;
    border: solid white;
    border-width: 0 1.8px 1.8px 0;
    transform: rotate(45deg);
  }
  
  .news-filter-search {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--bg-subtle);
    border: 1px solid var(--border-subtle);
    border-radius: 4px;
    padding: 4px 10px;
    height: 26px;
    width: 220px;
  }
  .news-filter-search input {
    border: none;
    outline: none;
    background: transparent;
    font-size: 13px;
    color: var(--text-1);
    width: 100%;
    font-family: var(--font-sans);
  }
  .news-filter-search input::placeholder { color: var(--text-3); }
  .news-filter-search svg { color: var(--text-3); flex-shrink: 0; }
  
  .news-filter-date {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--text-2);
    cursor: pointer;
    padding: 4px 10px;
    border-radius: 4px;
    transition: background 0.12s;
  }
  .news-filter-date:hover { background: var(--bg-subtle); color: var(--text-1); }
  
  /* 主体三栏 */
  .news-layout {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 24px;
    padding: 24px;
    background: var(--bg-main);
  }
  @media (max-width: 1200px) {
    .news-layout { grid-template-columns: 1fr; }
  }
  
  /* 主区 - 快讯流 */
  .news-feed {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    overflow: hidden;
    position: relative;
  }
  
  .news-date-divider {
    padding: 12px 20px 11px 20px;
    background: var(--bg-subtle);
    border-bottom: 1px solid var(--border-subtle);
    font-size: 12px;
    color: var(--text-2);
    font-family: var(--font-mono);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    font-variant-numeric: tabular-nums;
  }
  .news-date-divider .weekday {
    color: var(--text-3);
    font-family: var(--font-sans);
    font-weight: 500;
  }
  
  /* 单条快讯 */
  .news-item {
    display: grid;
    grid-template-columns: 64px 1fr;
    gap: 16px;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-subtle);
    align-items: baseline;
    transition: background 0.12s;
  }
  .news-item:hover { background: var(--bg-hover); }
  .news-item:last-child { border-bottom: none; }
  
  .news-time {
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 500;
    text-align: right;
    color: var(--ts-normal);
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.2px;
    padding-top: 1px;
  }
  .news-item.important .news-time {
    color: var(--ts-important);
    font-weight: 700;
  }
  
  .news-body { min-width: 0; }
  
  .news-title {
    font-family: var(--font-sans);
    font-size: 14px;
    font-weight: 600;
    color: var(--text-1);
    line-height: 1.5;
    margin-bottom: 5px;
    letter-spacing: -0.1px;
  }
  .news-title::before { content: '【'; }
  .news-title::after  { content: '】'; }
  
  .news-text {
    font-family: var(--font-sans);
    font-size: 14px;
    color: var(--text-1);
    line-height: 22px;
    letter-spacing: -0.05px;
  }
  .news-text.collapsed {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  
  .news-foot {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 9px;
  }
  
  /* 股票胶囊(资讯版,与现有 .stock-pill 不同实现) */
  .news-feed .stock-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 9px;
    border-radius: 4px;
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 500;
    background: rgba(230, 57, 70, 0.08);
    color: var(--up);
    cursor: pointer;
    transition: background 0.12s;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
    border: none;
  }
  .news-feed .stock-pill:hover { background: rgba(230, 57, 70, 0.14); }
  .news-feed .stock-pill.down {
    background: rgba(6, 167, 125, 0.08);
    color: var(--down);
  }
  .news-feed .stock-pill.down:hover { background: rgba(6, 167, 125, 0.14); }
  .news-feed .stock-pill-name {
    font-family: var(--font-sans);
    font-weight: 500;
  }
  
  /* 标签 */
  .news-tag {
    font-family: var(--font-sans);
    font-size: 11px;
    color: var(--text-3);
    padding: 2px 7px;
    border: 1px solid var(--border-subtle);
    border-radius: 3px;
    font-weight: 500;
    background: var(--bg-card);
  }
  
  .news-expand {
    margin-left: auto;
    font-size: 13px;
    color: var(--accent);
    cursor: pointer;
    font-weight: 500;
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-thickness: 1px;
  }
  .news-expand:hover { color: var(--text-1); }
  
  .news-comments {
    font-size: 12px;
    color: var(--text-3);
    font-family: var(--font-mono);
    font-variant-numeric: tabular-nums;
    cursor: pointer;
    margin-left: 6px;
  }
  .news-comments:hover { color: var(--text-2); }
  
  /* 新消息提示条 */
  .news-update-banner {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 8;
    background: var(--accent);
    color: white;
    text-align: center;
    padding: 8px 14px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transform: translateY(-100%);
    transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1);
  }
  .news-update-banner.show { transform: translateY(0); }
  .news-update-banner:hover { background: var(--text-1); }
  
  /* 右栏 */
  .news-aside {
    display: flex;
    flex-direction: column;
    gap: 20px;
  }
  
  .news-aside-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
  }
  
  .news-aside-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 14px 18px 8px 18px;
    border-bottom: 1px solid var(--border-subtle);
  }
  .news-aside-title {
    font-family: var(--font-display);
    font-size: 14px;
    color: var(--text-1);
    font-style: italic;
    font-weight: 400;
    letter-spacing: 0.2px;
  }
  .news-aside-more {
    font-size: 12px;
    color: var(--text-3);
    cursor: pointer;
    transition: color 0.12s;
  }
  .news-aside-more:hover { color: var(--text-1); }
  
  /* 行情卡 mini Tab(综览/外汇/商品/债券)*/
  .aside-mini-tabs {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 10px 18px 0 18px;
  }
  .aside-mini-tab {
    font-size: 13px;
    color: var(--text-3);
    cursor: pointer;
    padding-bottom: 8px;
    position: relative;
    user-select: none;
    transition: color 0.12s;
  }
  .aside-mini-tab:hover { color: var(--text-1); }
  .aside-mini-tab.active {
    color: var(--accent);
    font-weight: 600;
  }
  .aside-mini-tab.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--accent);
  }
  
  .aside-spark-wrap {
    padding: 12px 18px;
    border-bottom: 1px solid var(--border-subtle);
    border-top: 1px solid var(--border-subtle);
    margin-top: -1px;
  }
  .aside-spark {
    width: 100%;
    height: 70px;
    display: block;
  }
  
  .aside-asset-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
    padding: 12px 18px;
    border-bottom: 1px solid var(--border-subtle);
    align-items: center;
    cursor: pointer;
    transition: background 0.12s;
  }
  .aside-asset-row:last-child { border-bottom: none; }
  .aside-asset-row:hover { background: var(--bg-hover); }
  
  .aside-asset-name {
    font-size: 13px;
    color: var(--text-1);
    font-weight: 500;
    letter-spacing: -0.1px;
  }
  .aside-asset-code {
    font-size: 11px;
    color: var(--text-3);
    font-family: var(--font-mono);
    margin-top: 2px;
    letter-spacing: -0.2px;
  }
  .aside-asset-price-wrap { text-align: right; }
  .aside-asset-price {
    font-family: var(--font-mono);
    font-size: 16px;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.4px;
    line-height: 1.1;
  }
  .aside-asset-change {
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 500;
    margin-top: 3px;
    font-variant-numeric: tabular-nums;
  }
  
  /* 财经日历 */
  .calendar-date-divider {
    padding: 12px 18px 10px 18px;
    font-size: 12px;
    color: var(--text-2);
    font-family: var(--font-mono);
    font-weight: 600;
    border-bottom: 1px solid var(--border-subtle);
    font-variant-numeric: tabular-nums;
  }
  .calendar-date-divider .weekday {
    color: var(--text-3);
    font-family: var(--font-sans);
    font-weight: 500;
    margin-left: 4px;
  }
  
  .cal-event {
    padding: 12px 18px;
    border-bottom: 1px solid var(--border-subtle);
  }
  .cal-event:last-child { border-bottom: none; }
  
  .cal-event-row1 {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 5px;
  }
  .cal-event-time {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--text-2);
    font-weight: 500;
    font-variant-numeric: tabular-nums;
  }
  .cal-event-region {
    font-size: 11px;
    color: var(--text-3);
    font-weight: 500;
    padding: 1px 6px;
    border: 1px solid var(--border-subtle);
    border-radius: 3px;
    letter-spacing: 0.2px;
  }
  
  /* 板块热力图 / 题材卡 关注/持仓 文字标签 */
  .watch-marker, .hold-marker {
    display: inline-block;
    margin-left: 4px;
    font-size: 10px;
    font-weight: 700;
    padding: 0 4px;
    border-radius: 3px;
    letter-spacing: 0.3px;
    vertical-align: middle;
    line-height: 1.4;
  }
  .watch-marker {
    background: rgba(230, 57, 70, 0.12);
    color: var(--up);
  }
  .hold-marker {
    background: rgba(28, 25, 23, 0.07);
    color: var(--text-1);
  }
  
  /* Sidebar watch 列表前缀小 dot */
  .watch-marker-dot {
    width: 6px;
    height: 6px;
    background: var(--text-3);
    border-radius: 50%;
    flex-shrink: 0;
  }
  .cal-event-stars {
    margin-left: auto;
    color: var(--news-star);
    font-size: 11px;
    letter-spacing: 1px;
  }
  
  .cal-event-name {
    font-size: 13px;
    color: var(--text-1);
    line-height: 1.45;
    margin-bottom: 6px;
    letter-spacing: -0.1px;
  }
  
  .cal-event-numbers {
    display: flex;
    gap: 12px;
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--text-3);
    font-variant-numeric: tabular-nums;
  }
  .cal-event-numbers span strong {
    color: var(--text-1);
    font-weight: 600;
    margin-left: 3px;
  }


/* 日期选择 select (替代 input type=date, 不卡) */
.news-filter-date .news-date-select {
  border: none;
  background: transparent;
  font-family: inherit;
  font-size: 11px;
  color: var(--text-1);
  outline: none;
  cursor: pointer;
  padding: 2px 4px;
  margin-left: 4px;
  border-radius: 4px;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24' fill='none' stroke='%23857f78' stroke-width='2.5'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 4px center;
  padding-right: 18px;
}
.news-filter-date .news-date-select:hover {
  background-color: var(--bg-3);
}


/* 3 个 select 联动: 紧凑显示 */
.news-filter-date .news-date-select + .news-date-select {
  margin-left: 0;
}
.news-filter-date .news-date-select:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
