/* ==========================================================================
       主题色系统与设计令牌 (参考 News.tsx 瑞士编辑风规范)
       ========================================================================== */
    :root, [data-theme="red"] {
      --news-accent: #b3362b;
      --news-deep: #8e2a22;
      --news-paper: #faf7f0;
      --news-paper2: #f3eee3;
      --news-ink: #243444;
      --news-ink-muted: #74818d;
      --news-ink-faint: #8c969e;
      --news-border: #dce6ed;
      --news-border-light: #e8eff5;
    }
    [data-theme="graphite"] {
      --news-accent: #333333;
      --news-deep: #1a1a1a;
      --news-paper: #f5f5f3;
      --news-paper2: #eaeae6;
      --news-ink: #222222;
      --news-ink-muted: #666666;
      --news-ink-faint: #888888;
      --news-border: #d8d8d4;
      --news-border-light: #e6e6e2;
    }
    [data-theme="teal"] {
      --news-accent: #137373;
      --news-deep: #0d5252;
      --news-paper: #f2f7f7;
      --news-paper2: #e3efef;
      --news-ink: #1b3838;
      --news-ink-muted: #577878;
      --news-ink-faint: #7d9e9e;
      --news-border: #d0e4e4;
      --news-border-light: #e4f0f0;
    }
    [data-theme="orange"] {
      --news-accent: #c45b20;
      --news-deep: #9c4314;
      --news-paper: #fdf7f2;
      --news-paper2: #f7ebe0;
      --news-ink: #3b2b20;
      --news-ink-muted: #856f61;
      --news-ink-faint: #a69285;
      --news-border: #eddcd0;
      --news-border-light: #f7ece3;
    }
    [data-theme="rose"] {
      --news-accent: #ad2d5f;
      --news-deep: #8a1e48;
      --news-paper: #fbf3f6;
      --news-paper2: #f4e4eb;
      --news-ink: #3b202c;
      --news-ink-muted: #876274;
      --news-ink-faint: #a68595;
      --news-border: #ebd3de;
      --news-border-light: #f7e6ee;
    }
    [data-theme="green"] {
      --news-accent: #286b3d;
      --news-deep: #1b4d2b;
      --news-paper: #f3f8f4;
      --news-paper2: #e5f0e7;
      --news-ink: #1c3624;
      --news-ink-muted: #5e7a66;
      --news-ink-faint: #849e8b;
      --news-border: #cee3d2;
      --news-border-light: #e4f0e6;
    }
    [data-theme="blue"] {
      --news-accent: #20579e;
      --news-deep: #163f73;
      --news-paper: #f2f6fc;
      --news-paper2: #e2ecf7;
      --news-ink: #1d2e44;
      --news-ink-muted: #5b6f87;
      --news-ink-faint: #8397ad;
      --news-border: #cfdef0;
      --news-border-light: #e3edf7;
    }

    /* 基础重置与排版 */
    *, *::before, *::after {
      box-sizing: border-box;
      margin: 0;
      padding: 0;
    }
    html {
      -webkit-text-size-adjust: 100%;
      scroll-behavior: smooth;
    }
    body {
      font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "WenQuanYi Micro Hei", "Noto Sans SC", sans-serif;
      background: var(--news-paper);
      color: var(--news-ink);
      line-height: 1.7;
      font-size: 15px;
      -webkit-font-smoothing: antialiased;
      -moz-osx-font-smoothing: grayscale;
      transition: background-color 0.25s ease, color 0.25s ease;
    }

    a {
      color: inherit;
      text-decoration: none;
      transition: color 0.15s ease;
    }
    a:hover {
      color: var(--news-accent);
    }
    button, input {
      font-family: inherit;
    }
    button:focus-visible, a:focus-visible, input:focus-visible {
      outline: 2px solid var(--news-accent);
      outline-offset: 2px;
      border-radius: 4px;
    }
    .skip-to-content {
      position: absolute;
      top: -100px;
      left: 16px;
      background: var(--news-accent);
      color: #fff;
      padding: 8px 16px;
      z-index: 9999;
      font-size: 13px;
      font-weight: 600;
      border-radius: 4px;
    }
    .skip-to-content:focus {
      top: 16px;
    }

    /* 主容器 */
    .news-page {
      max-width: 1400px;
      margin: 0 auto;
      padding: 40px 32px 70px;
      color: var(--news-ink);
    }

    /* 刊头 (Channel Header) */
    .news-channel-header {
      display: flex;
      justify-content: space-between;
      align-items: center;
      gap: 24px;
      margin-bottom: 24px;
    }
    .news-kicker {
      display: inline-block;
      font-size: 11px;
      letter-spacing: 2px;
      color: var(--news-ink-muted);
      font-weight: 700;
      text-transform: uppercase;
    }
    .news-kicker:hover {
      color: var(--news-accent);
    }
    .news-channel-header h1 {
      font-size: clamp(34px, 4.2vw, 48px);
      letter-spacing: -1.5px;
      line-height: 1.25;
      font-weight: 850;
      margin: 12px 0 10px;
      color: var(--news-ink);
    }
    .news-channel-header p {
      font-size: 14.5px;
      color: var(--news-ink-muted);
      max-width: 58ch;
      line-height: 1.6;
    }
    .news-channel-header small {
      display: block;
      font-size: 11.5px;
      color: var(--news-ink-faint);
      margin-top: 10px;
      font-variant-numeric: tabular-nums;
    }

    /* 配色主题切换栏 (Themes Bar) */
    .news-themes {
      display: flex;
      gap: 11px;
      align-items: center;
      padding: 10px 0 24px;
      font-size: 11px;
      color: var(--news-ink-muted);
      border-bottom: 1px solid var(--news-border-light);
      margin-bottom: 32px;
    }
    .news-themes-label {
      font-weight: 600;
      letter-spacing: 0.5px;
    }
    .news-themes-dots {
      display: flex;
      gap: 8px;
      align-items: center;
    }
    .news-theme-dot {
      height: 20px;
      width: 20px;
      border-radius: 50%;
      border: 2px solid #fff;
      box-shadow: 0 0 0 1px var(--news-border);
      cursor: pointer;
      padding: 0;
      transition: transform 0.15s ease, box-shadow 0.15s ease;
    }
    .news-theme-dot:hover {
      transform: scale(1.15);
    }
    .news-theme-dot[aria-pressed="true"] {
      box-shadow: 0 0 0 2px var(--news-accent);
      transform: scale(1.1);
    }
    .news-themes-name {
      margin-left: 6px;
      font-weight: 600;
      color: var(--news-accent);
    }

    /* 封面故事展墙 (Cover Story Wall) */
    .news-opinion-wall {
      margin-bottom: 36px;
    }
    .news-opinion-cover {
      display: grid;
      grid-template-columns: minmax(0, 1fr);
      padding: 42px 46px;
      background: var(--news-paper);
      border-top: 4px solid var(--news-accent);
      border-bottom: 1px solid var(--news-border);
      border-left: 1px solid var(--news-border);
      border-right: 1px solid var(--news-border);
      border-radius: 4px;
      box-shadow: 0 4px 16px rgba(0, 0, 0, 0.02);
      transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
    }
    /* 有封面图: 文左图右(杂志封面感), 图 3:2 与生成尺寸 1536x1024 一致 */
    .news-opinion-cover.has-img {
      grid-template-columns: minmax(0, 1fr) minmax(0, 38%);
      gap: 0 42px;
      align-items: center;
    }
    .news-opinion-img {
      display: block;
      width: 100%;
      aspect-ratio: 3 / 2;
      object-fit: cover;
      border: 1px solid var(--news-border);
      border-radius: 4px;
      box-shadow: 0 10px 30px rgba(36, 52, 68, 0.10);
      transition: transform 0.18s ease, box-shadow 0.18s ease;
    }
    .news-opinion-cover.has-img:hover .news-opinion-img {
      transform: translateY(-2px);
      box-shadow: 0 14px 36px rgba(36, 52, 68, 0.14);
    }
    .news-opinion-cover:hover {
      transform: translateY(-2px);
      box-shadow: 0 10px 24px rgba(0, 0, 0, 0.04);
      border-top-color: var(--news-deep);
    }
    .news-opinion-text > span {
      display: inline-block;
      font-size: 11px;
      letter-spacing: 3px;
      font-weight: 750;
      color: var(--news-accent);
      text-transform: uppercase;
      margin-bottom: 14px;
    }
    .news-opinion-cover h2 {
      font-size: clamp(26px, 3.2vw, 36px);
      font-weight: 800;
      line-height: 1.45;
      margin: 0 0 16px;
      max-width: 960px;
      letter-spacing: -0.6px;
      color: var(--news-ink);
    }
    .news-opinion-cover em {
      display: block;
      color: var(--news-accent);
      font-style: normal;
      margin-top: 4px;
    }
    .news-opinion-text > p {
      font-size: 15.5px;
      line-height: 1.85;
      max-width: 880px;
      color: var(--news-ink-muted);
    }
    .news-opinion-cover footer {
      display: flex;
      gap: 20px;
      justify-content: space-between;
      align-items: center;
      font-size: 12px;
      margin-top: 26px;
      color: var(--news-ink-faint);
      padding-top: 18px;
      border-top: 1px solid rgba(0, 0, 0, 0.06);
    }
    .news-opinion-cover footer b {
      color: var(--news-accent);
      font-weight: 700;
      display: inline-flex;
      align-items: center;
      gap: 4px;
    }

    /* 产业日报矩阵 (Daily Briefings Wall) */
    .news-daily-wall {
      margin-bottom: 44px;
    }
    .news-section-heading {
      display: flex;
      justify-content: space-between;
      align-items: baseline;
      margin: 32px 0 18px;
      gap: 16px;
      border-bottom: 2px solid var(--news-ink);
      padding-bottom: 10px;
    }
    .news-section-heading h2 {
      font-size: 20px;
      font-weight: 800;
      letter-spacing: -0.3px;
      display: flex;
      align-items: center;
      gap: 10px;
    }
    .news-section-heading h2::before {
      content: "";
      width: 4px;
      height: 18px;
      background: var(--news-accent);
      border-radius: 2px;
      flex: none;
    }
    .news-section-heading span {
      font-size: 12px;
      color: var(--news-ink-faint);
      font-variant-numeric: tabular-nums;
    }
    .news-daily-grid {
      display: grid;
      grid-template-columns: repeat(4, minmax(0, 1fr));
      gap: 14px;
    }
    .news-daily-card {
      background: #fff;
      border: 1px solid var(--news-border);
      border-top: 3px solid var(--news-accent);
      padding: 22px 20px;
      display: flex;
      flex-direction: column;
      border-radius: 4px;
      box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
      transition: transform 0.15s ease, box-shadow 0.15s ease;
    }
    .news-daily-card:hover {
      transform: translateY(-2px);
      box-shadow: 0 6px 16px rgba(0, 0, 0, 0.05);
    }
    .news-daily-card small {
      font-size: 11px;
      font-weight: 750;
      color: var(--news-accent);
      letter-spacing: 0.5px;
      margin-bottom: 8px;
    }
    .news-daily-card h3 {
      font-size: 15.5px;
      line-height: 1.6;
      font-weight: 750;
      margin-bottom: 10px;
      color: var(--news-ink);
      display: -webkit-box;
      -webkit-line-clamp: 2;
      -webkit-box-orient: vertical;
      overflow: hidden;
    }
    .news-daily-card p {
      font-size: 12px;
      color: var(--news-ink-muted);
      line-height: 1.75;
      margin-bottom: 14px;
      flex: 1;
      display: -webkit-box;
      -webkit-line-clamp: 3;
      -webkit-box-orient: vertical;
      overflow: hidden;
    }
    .news-daily-card span {
      font-size: 11px;
      color: var(--news-accent);
      font-weight: 600;
      margin-top: auto;
      display: inline-flex;
      align-items: center;
      gap: 3px;
    }

    /* 浏览、分类与搜索 (Browse & Filters) */
    .news-browse {
      margin-top: 40px;
    }
    .news-filters {
      display: flex;
      justify-content: space-between;
      align-items: center;
      gap: 20px;
      flex-wrap: wrap;
      background: rgba(255, 255, 255, 0.7);
      padding: 14px 18px;
      border-radius: 12px;
      border: 1px solid var(--news-border);
      backdrop-filter: blur(8px);
    }
    .news-filters-group {
      display: flex;
      gap: 6px;
      flex-wrap: wrap;
      align-items: center;
    }
    .news-filter-btn {
      padding: 7px 15px;
      border-radius: 20px;
      font-size: 12.5px;
      color: var(--news-ink-muted);
      background: transparent;
      border: 1px solid transparent;
      cursor: pointer;
      font-weight: 500;
      transition: all 0.15s ease;
    }
    .news-filter-btn:hover {
      color: var(--news-ink);
      background: rgba(0, 0, 0, 0.04);
    }
    .news-filter-btn.is-active, .news-filter-btn[aria-pressed="true"] {
      background: #213e53;
      color: #fff;
      font-weight: 600;
    }
    .news-saved-filter {
      border: 1px dashed var(--news-border);
    }
    .news-saved-filter.is-active {
      background: var(--news-accent) !important;
      border-color: var(--news-accent) !important;
    }

    .news-search-box {
      position: relative;
      flex: none;
      min-width: 260px;
    }
    .news-search-box input {
      border: 1px solid var(--news-border);
      background: #fff;
      padding: 9px 14px 9px 34px;
      border-radius: 20px;
      width: 100%;
      font-size: 12.5px;
      color: var(--news-ink);
      transition: border-color 0.15s ease, box-shadow 0.15s ease;
    }
    .news-search-box input:focus {
      border-color: var(--news-accent);
      box-shadow: 0 0 0 3px rgba(179, 54, 43, 0.12);
      outline: none;
    }
    .news-search-icon {
      position: absolute;
      left: 12px;
      top: 50%;
      transform: translateY(-50%);
      color: var(--news-ink-faint);
      pointer-events: none;
      display: flex;
      align-items: center;
    }

    /* 首页搜索入口(提交到搜索页) */
    .news-search-entry {
      display: block;
      min-width: 0;
      max-width: 560px;
      margin: 0 auto;
    }
    .news-search-entry input {
      cursor: text;
    }

    .news-count {
      display: none;
    }    /* 加载更多 */
    .news-loadmore {
      display: flex;
      justify-content: center;
      padding: 26px 0 6px;
    }
    .news-loadmore-btn {
      padding: 11px 34px;
      border-radius: 24px;
      border: 1px solid var(--news-border);
      background: #fff;
      color: var(--news-ink-muted);
      font-size: 13px;
      font-weight: 600;
      cursor: pointer;
      transition: all 0.15s ease;
    }
    .news-loadmore-btn:hover {
      color: var(--news-ink);
      border-color: var(--news-ink-faint);
      transform: translateY(-1px);
    }
    .news-loadmore-btn[disabled] {
      opacity: 0.55;
      cursor: default;
      transform: none;
    }
    .news-loadmore.is-done {
      display: none;
    }

    /* 杂志版双列文章卡片 (Magazine View List) */
    .news-magazine-list {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 18px;
      margin-top: 26px;
    }
    .news-story-card {
      border: 1px solid var(--news-border);
      background: #fff;
      padding: 26px 28px;
      border-radius: 8px;
      min-width: 0;
      display: flex;
      flex-direction: column;
      box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
      transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
    }
    .news-story-card:hover {
      transform: translateY(-2px);
      box-shadow: 0 8px 20px rgba(0, 0, 0, 0.04);
      border-color: #cbd7e0;
    }
    .news-story-meta {
      display: flex;
      align-items: center;
      gap: 12px;
      font-size: 11.5px;
      color: var(--news-ink-faint);
      margin-bottom: 12px;
    }
    .news-category {
      font-size: 11px;
      font-weight: 700;
      letter-spacing: 0.5px;
    }
    .category-科技 { color: #2276ac; }
    .category-财经 { color: #238466; }
    .category-政策与监管 { color: #b43e40; }
    .news-story-card h3 {
      font-size: 18px;
      line-height: 1.6;
      font-weight: 750;
      margin-bottom: 12px;
      letter-spacing: -0.3px;
    }
    .news-story-card h3 a {
      color: var(--news-ink);
    }
    .news-story-card h3 a:hover {
      color: var(--news-accent);
    }
    .news-story-card > p {
      font-size: 13.5px;
      line-height: 1.85;
      color: var(--news-ink-muted);
      margin-bottom: 18px;
      flex: 1;
      display: -webkit-box;
      -webkit-line-clamp: 3;
      -webkit-box-orient: vertical;
      overflow: hidden;
    }
    .news-story-footer {
      display: flex;
      justify-content: space-between;
      align-items: center;
      gap: 16px;
      font-size: 11px;
      color: var(--news-ink-faint);
      padding-top: 14px;
      border-top: 1px solid var(--news-border-light);
      margin-top: auto;
    }
    .news-story-sources {
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
      flex: 1;
    }
    .news-bookmark-btn {
      flex: none;
      font-size: 11.5px;
      color: var(--news-accent);
      padding: 4px 8px;
      background: transparent;
      border: 1px solid rgba(179, 54, 43, 0.2);
      border-radius: 4px;
      cursor: pointer;
      font-weight: 600;
      transition: all 0.15s ease;
    }
    .news-bookmark-btn:hover {
      background: var(--news-accent);
      color: #fff;
    }
    .news-bookmark-btn[aria-pressed="true"] {
      background: var(--news-accent);
      color: #fff;
    }

    /* 空状态提示 */
    .news-empty {
      padding: 60px 20px;
      text-align: center;
      color: var(--news-ink-muted);
      font-size: 14.5px;
      background: #fff;
      border: 1px dashed var(--news-border);
      border-radius: 8px;
      margin: 20px 0;
    }

    /* 订阅横幅 (Subscribe Section) */
    .news-subscribe {
      display: flex;
      justify-content: space-between;
      align-items: center;
      gap: 28px;
      background: var(--news-deep);
      color: #fff;
      padding: 36px 42px;
      margin: 50px 0 20px;
      border-radius: 6px;
      box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
    }
    .news-subscribe h2 {
      font-size: 21px;
      font-weight: 800;
      line-height: 1.4;
      margin-bottom: 6px;
    }
    .news-subscribe p {
      font-size: 13px;
      opacity: 0.8;
      line-height: 1.6;
    }
    .news-subscribe-btn {
      background: rgba(255, 255, 255, 0.15);
      border: 1px solid rgba(255, 255, 255, 0.35);
      color: #fff;
      padding: 12px 22px;
      font-size: 13px;
      font-weight: 600;
      border-radius: 4px;
      flex: none;
      cursor: pointer;
      transition: background 0.15s ease, border-color 0.15s ease;
    }
    .news-subscribe-btn:hover {
      background: #fff;
      color: var(--news-deep);
      border-color: #fff;
    }

    /* 页脚 (Footer) */
    .news-footer {
      border-top: 1px solid var(--news-border);
      padding: 36px 0 20px;
      margin-top: 40px;
      display: flex;
      justify-content: space-between;
      align-items: center;
      flex-wrap: wrap;
      gap: 18px;
      font-size: 12px;
      color: var(--news-ink-faint);
    }
    .news-footer-nav {
      display: flex;
      gap: 18px;
      flex-wrap: wrap;
    }
    .news-footer-nav a:hover {
      color: var(--news-accent);
    }

    /* ==========================================================================
       响应式断点适配 (Responsive Media Queries)
       ========================================================================== */
    @media (max-width: 950px) {
      .news-page {
        padding: 30px 22px 60px;
      }
      .news-daily-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
      }
      .news-opinion-cover {
        padding: 32px 28px;
      }
      .news-opinion-cover.has-img {
        gap: 0 28px;
      }
      .news-opinion-cover h2 {
        font-size: 26px;
      }
    }

    @media (max-width: 640px) {
      .news-page {
        padding: 24px 16px 45px;
      }
      .news-opinion-cover.has-img {
        grid-template-columns: minmax(0, 1fr);
        gap: 24px 0;
      }
      .news-channel-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 18px;
      }
      .news-channel-header h1 {
        font-size: 32px;
      }
      .news-channel-header small {
        display: none;
      }
      .news-themes {
        flex-wrap: wrap;
        gap: 8px;
      }
      .news-section-heading h2 {
        font-size: 18px;
      }
      .news-story-card {
        padding: 20px;
      }
      .news-daily-grid {
        display: flex;
        overflow-x: auto;
        gap: 12px;
        scroll-snap-type: x mandatory;
        padding-bottom: 8px;
        -webkit-overflow-scrolling: touch;
      }
      .news-daily-card {
        min-width: 250px;
        scroll-snap-align: start;
        flex: none;
      }
      .news-magazine-list {
        grid-template-columns: 1fr;
      }
      .news-filters {
        flex-direction: column;
        align-items: stretch;
      }
      .news-filters-group {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 2px;
      }
      .news-search-box {
        min-width: 100%;
      }
      .news-subscribe {
        flex-direction: column;
        align-items: flex-start;
        padding: 28px 24px;
      }
      .news-opinion-cover {
        padding: 24px 20px;
      }
      .news-opinion-cover footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
      }
    }

    /* 无障碍减弱动态支持 */
    @media (prefers-reduced-motion: reduce) {
      *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
      }
    }
