    * { box-sizing: border-box; margin: 0; padding: 0; }

    body {
      font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
      background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
      min-height: 100vh;
      padding: 20px;
    }

    .container {
      background: white;
      border-radius: 16px;
      box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
      max-width: 1400px;
      width: 100%;
      margin: 0 auto;
      padding: 30px;
    }

    .header {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-bottom: 24px;
      padding-bottom: 20px;
      border-bottom: 2px solid #e2e8f0;
      flex-wrap: wrap;
      gap: 16px;
    }

    h1 { font-size: 24px; color: #1a202c; }

    .nav-links { display: flex; gap: 16px; flex-wrap: wrap; }

    .nav-link {
      padding: 8px 16px;
      font-size: 14px;
      font-weight: 500;
      cursor: pointer;
      text-decoration: none;
      color: #3b82f6;
      border-radius: 6px;
      transition: all 0.2s;
    }

    .nav-link:hover { background: #eff6ff; }

    /* 统计卡片 */
    .stats-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
      gap: 16px;
      margin-bottom: 24px;
    }

    .stat-card {
      background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
      border-radius: 12px;
      padding: 20px;
      color: white;
      position: relative;
      overflow: hidden;
    }

    .stat-card.green { background: linear-gradient(135deg, #10b981 0%, #059669 100%); }
    .stat-card.orange { background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%); }
    .stat-card.red { background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%); }

    .stat-card-icon {
      position: absolute;
      right: 16px;
      top: 50%;
      transform: translateY(-50%);
      font-size: 48px;
      opacity: 0.3;
    }

    .stat-card-label { font-size: 14px; opacity: 0.9; margin-bottom: 8px; }
    .stat-card-value { font-size: 32px; font-weight: 700; }
    .stat-card-sub { font-size: 12px; opacity: 0.8; margin-top: 4px; }

    /* 主要内容区域 */
    .main-content {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 24px;
      margin-bottom: 24px;
    }

    @media (max-width: 1024px) {
      .main-content { grid-template-columns: 1fr; }
    }

    .section {
      background: #f8fafc;
      border: 1px solid #e2e8f0;
      border-radius: 12px;
      padding: 20px;
    }

    .section-header {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-bottom: 16px;
      padding-bottom: 12px;
      border-bottom: 1px solid #e2e8f0;
    }

    .section-title { font-size: 16px; font-weight: 600; color: #1a202c; }

    .section-action {
      font-size: 13px;
      color: #3b82f6;
      cursor: pointer;
      text-decoration: none;
    }

    .section-action:hover { text-decoration: underline; }

    /* 热门股票列表 */
    .stock-list { list-style: none; }

    .stock-item {
      display: flex;
      align-items: center;
      padding: 12px 0;
      border-bottom: 1px solid #e5e7eb;
      cursor: pointer;
      transition: background 0.2s;
    }

    .stock-item:hover { background: #f1f5f9; margin: 0 -20px; padding: 12px 20px; }
    .stock-item:last-child { border-bottom: none; }

    .stock-rank {
      width: 24px;
      height: 24px;
      border-radius: 50%;
      background: #e5e7eb;
      color: #6b7280;
      font-size: 12px;
      font-weight: 600;
      display: flex;
      align-items: center;
      justify-content: center;
      margin-right: 12px;
    }

    .stock-rank.top1 { background: #fbbf24; color: white; }
    .stock-rank.top2 { background: #9ca3af; color: white; }
    .stock-rank.top3 { background: #cd7f32; color: white; }

    .stock-info { flex: 1; }
    .stock-name { font-weight: 500; color: #1f2937; font-size: 14px; }
    .stock-code { font-size: 12px; color: #6b7280; }
    .stock-industry {
      display: inline-block;
      padding: 2px 8px;
      background: #f3f4f6;
      color: #6b7280;
      border-radius: 4px;
      font-size: 11px;
      margin-left: 8px;
    }

    .stock-stats { text-align: right; }
    .stock-mentions { font-size: 14px; color: #374151; }
    .stock-mentions-tag {
      display: inline-block;
      padding: 4px 10px;
      background: #eff6ff;
      color: #3b82f6;
      border-radius: 12px;
      font-size: 13px;
      font-weight: 500;
      transition: all 0.2s;
    }
    .stock-mentions-tag:hover {
      background: #dbeafe;
      color: #2563eb;
    }

    .sentiment-badge {
      display: inline-block;
      padding: 2px 8px;
      border-radius: 10px;
      font-size: 11px;
      font-weight: 500;
    }

    .sentiment-badge.bullish { background: #ef4444; color: white; }
    .sentiment-badge.bearish { background: #10b981; color: white; }
    .sentiment-badge.neutral { background: #f3f4f6; color: #6b7280; }
    .sentiment-badge.pending { background: #fef3c7; color: #92400e; }

    /* 分析状态标签 */
    .analysis-status-badge {
      display: inline-block;
      padding: 2px 8px;
      border-radius: 10px;
      font-size: 11px;
      font-weight: 500;
      margin-right: 8px;
    }

    .analysis-status-badge.pending {
      background: #fef3c7;
      color: #92400e;
    }

    .analysis-status-badge.analyzed {
      background: #dcfce7;
      color: #166534;
    }

    /* 荐股列表 */
    .recommendation-item {
      background: white;
      border: 1px solid #e5e7eb;
      border-radius: 10px;
      padding: 16px;
      margin-bottom: 12px;
      cursor: pointer;
      transition: all 0.2s;
    }

    .recommendation-item:hover {
      border-color: #3b82f6;
      box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
    }

    .recommendation-header {
      display: flex;
      justify-content: space-between;
      align-items: flex-start;
      margin-bottom: 8px;
    }

    .recommendation-stock { font-weight: 600; color: #1f2937; }

    .recommendation-score {
      background: linear-gradient(135deg, #10b981, #059669);
      color: white;
      padding: 4px 10px;
      border-radius: 12px;
      font-size: 13px;
      font-weight: 600;
    }

    .recommendation-reasons {
      font-size: 13px;
      color: #6b7280;
      margin-bottom: 8px;
    }

    .recommendation-tags { display: flex; gap: 8px; flex-wrap: wrap; }

    .tag {
      padding: 2px 8px;
      background: #eff6ff;
      color: #3b82f6;
      border-radius: 4px;
      font-size: 11px;
    }

    .tag.risk { background: #fef2f2; color: #dc2626; }

    /* 文章列表区域 */
    .articles-section {
      background: #f8fafc;
      border: 1px solid #e2e8f0;
      border-radius: 12px;
      padding: 20px;
    }

    .toolbar {
      display: flex;
      gap: 12px;
      margin-bottom: 16px;
      flex-wrap: wrap;
      align-items: center;
    }

    .search-input {
      flex: 1;
      min-width: 200px;
      padding: 10px 16px;
      border: 1px solid #d1d5db;
      border-radius: 8px;
      font-size: 14px;
    }

    .search-input:focus {
      outline: none;
      border-color: #3b82f6;
      box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    }

    .btn {
      padding: 10px 16px;
      border-radius: 8px;
      font-size: 14px;
      font-weight: 500;
      cursor: pointer;
      border: none;
      transition: all 0.2s;
    }

    .btn-primary { background: #3b82f6; color: white; }
    .btn-primary:hover { background: #2563eb; }
    .btn-primary:disabled { background: #9ca3af; cursor: not-allowed; }

    .btn-secondary { background: #f3f4f6; color: #374151; border: 1px solid #d1d5db; }
    .btn-secondary:hover { background: #e5e7eb; }

    .btn-success { background: #10b981; color: white; }
    .btn-success:hover { background: #059669; }

    /* 日期选择器 */
    .date-picker-container {
      display: flex;
      align-items: center;
      gap: 8px;
      flex-wrap: wrap;
    }

    .date-picker-wrapper {
      display: flex;
      align-items: center;
      gap: 8px;
      background: white;
      border: 1px solid #d1d5db;
      border-radius: 8px;
      padding: 8px 12px;
    }

    .date-input {
      border: none;
      outline: none;
      font-size: 14px;
      color: #374151;
      background: transparent;
      width: 140px;
    }

    .date-nav-btn {
      width: 28px;
      height: 28px;
      border: none;
      background: #f3f4f6;
      border-radius: 4px;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 14px;
      color: #374151;
      transition: all 0.2s;
    }

    .date-nav-btn:hover {
      background: #e5e7eb;
    }

    .date-nav-btn:disabled {
      opacity: 0.5;
      cursor: not-allowed;
    }

    .date-display {
      font-size: 14px;
      color: #6b7280;
      margin-left: 8px;
    }

    .pagination-info {
      display: flex;
      align-items: center;
      gap: 12px;
      font-size: 14px;
      color: #6b7280;
    }

    .day-header {
      background: #f8fafc;
      padding: 12px 16px;
      border-bottom: 2px solid #e5e7eb;
      margin: 0 -20px 16px -20px;
      font-weight: 600;
      color: #374151;
      display: flex;
      justify-content: space-between;
      align-items: center;
    }

    .day-header-date {
      font-size: 16px;
    }

    .day-header-count {
      font-size: 13px;
      font-weight: 500;
      color: #6b7280;
    }

    /* 文章表格 */
    .table-container { overflow-x: auto; }

    table { width: 100%; border-collapse: collapse; background: white; font-size: 14px; }

    th {
      background: #f9fafb;
      padding: 12px;
      text-align: left;
      font-weight: 600;
      color: #374151;
      border-bottom: 2px solid #e5e7eb;
      white-space: nowrap;
    }

    td {
      padding: 12px;
      border-bottom: 1px solid #e5e7eb;
      color: #374151;
      vertical-align: top;
    }

    tr:hover { background-color: #f9fafb; }

    .article-title-cell {
      max-width: 250px;
      font-weight: 500;
    }

    .article-title-cell a {
      color: #1f2937;
      text-decoration: none;
    }

    .article-title-cell a:hover { color: #3b82f6; }

    .article-title-cell .title-wrap {
      display: inline-flex;
      align-items: center;
      gap: 6px;
    }

    .article-has-image-icon {
      flex-shrink: 0;
      font-size: 14px;
      opacity: 0.85;
      line-height: 1;
    }

    .stocks-cell { max-width: 200px; }

    .stock-tag {
      display: inline-block;
      padding: 2px 6px;
      background: #dbeafe;
      color: #1d4ed8;
      border-radius: 4px;
      font-size: 11px;
      margin: 2px;
      cursor: pointer;
    }

    .stock-tag:hover { background: #bfdbfe; }

    .action-btn {
      padding: 6px 12px;
      background: #3b82f6;
      color: white;
      border: none;
      border-radius: 6px;
      font-size: 12px;
      font-weight: 500;
      cursor: pointer;
      transition: all 0.2s;
    }

    .action-btn:hover {
      background: #2563eb;
    }

    .action-btn:disabled,
    .action-btn.disabled {
      background: #e5e7eb;
      color: #9ca3af;
      cursor: not-allowed;
      opacity: 0.6;
    }

    .action-btn:disabled:hover,
    .action-btn.disabled:hover {
      background: #e5e7eb;
    }

    .action-btn-secondary {
      padding: 6px 12px;
      background: #6b7280;
      color: white;
      border: none;
      border-radius: 6px;
      font-size: 12px;
      font-weight: 500;
      cursor: pointer;
      transition: all 0.2s;
      margin-left: 8px;
    }

    .action-btn-secondary:hover {
      background: #4b5563;
    }

    .action-btn-secondary:disabled {
      background: #e5e7eb;
      color: #9ca3af;
      cursor: not-allowed;
      opacity: 0.6;
    }

    /* 模态框 */
    .modal-overlay {
      position: fixed;
      top: 0;
      left: 0;
      right: 0;
      bottom: 0;
      background: rgba(0, 0, 0, 0.5);
      display: none;
      align-items: center;
      justify-content: center;
      z-index: 1000;
      padding: 20px;
    }

    .modal-overlay.show { display: flex; }

    .modal {
      background: white;
      border-radius: 16px;
      max-width: 700px;
      width: 100%;
      max-height: 90vh;
      overflow-y: auto;
      box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    }

    .modal-header {
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 20px 24px;
      border-bottom: 1px solid #e5e7eb;
    }

    .modal-title { font-size: 18px; font-weight: 600; color: #1f2937; }

    .modal-close {
      width: 32px;
      height: 32px;
      border: none;
      background: #f3f4f6;
      border-radius: 50%;
      cursor: pointer;
      font-size: 18px;
      color: #6b7280;
    }

    .modal-close:hover { background: #e5e7eb; }

    .modal-body { padding: 24px; }

    .detail-section { margin-bottom: 20px; }
    .detail-label { font-size: 12px; color: #6b7280; margin-bottom: 4px; }
    .detail-value { font-size: 15px; color: #1f2937; }

    .detail-grid {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 16px;
      margin-bottom: 20px;
    }

    .detail-card {
      background: #f8fafc;
      border-radius: 8px;
      padding: 12px;
      text-align: center;
    }

    .detail-card-value { font-size: 24px; font-weight: 600; color: #1f2937; }
    .detail-card-label { font-size: 12px; color: #6b7280; }

    .sentiment-bar {
      display: flex;
      height: 8px;
      border-radius: 4px;
      overflow: hidden;
      margin-top: 8px;
    }

    .sentiment-bar-bullish { background: #ef4444; }
    .sentiment-bar-neutral { background: #9ca3af; }
    .sentiment-bar-bearish { background: #10b981; }

    .related-articles { margin-top: 20px; }

    .related-article-item {
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 10px 0;
      border-bottom: 1px solid #e5e7eb;
    }

    .related-article-item:last-child { border-bottom: none; }

    .related-article-title {
      flex: 1;
      font-size: 13px;
      color: #374151;
      text-decoration: none;
    }

    .related-article-title:hover { color: #3b82f6; }

    /* 加载状态 */
    .loading { text-align: center; padding: 40px; color: #6b7280; }
    .empty-state { text-align: center; padding: 40px; color: #6b7280; }

    /* Toast */
    .toast {
      position: fixed;
      top: 20px;
      left: 50%;
      transform: translateX(-50%);
      background: #1a202c;
      color: white;
      padding: 12px 24px;
      border-radius: 8px;
      box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
      z-index: 2000;
      opacity: 0;
      transition: opacity 0.3s;
      pointer-events: none;
    }

    .toast.show { opacity: 1; }

    /* 自动分析开关 */
    .auto-analyze-toggle {
      display: flex;
      align-items: center;
      gap: 8px;
      cursor: pointer;
      user-select: none;
      padding: 6px 12px;
      background: #f8fafc;
      border-radius: 8px;
      border: 1px solid #e2e8f0;
    }
    .auto-analyze-toggle input {
      display: none;
    }
    .toggle-slider {
      width: 36px;
      height: 20px;
      background: #cbd5e1;
      border-radius: 10px;
      position: relative;
      transition: background 0.2s;
    }
    .toggle-slider::after {
      content: '';
      position: absolute;
      width: 16px;
      height: 16px;
      background: white;
      border-radius: 50%;
      top: 2px;
      left: 2px;
      transition: transform 0.2s;
      box-shadow: 0 1px 3px rgba(0,0,0,0.2);
    }
    .auto-analyze-toggle input:checked + .toggle-slider {
      background: #10b981;
    }
    .auto-analyze-toggle input:checked + .toggle-slider::after {
      transform: translateX(16px);
    }
    .toggle-label {
      font-size: 13px;
      color: #475569;
      font-weight: 500;
    }
    .last-run-time {
      font-size: 12px;
      color: #64748b;
      padding: 4px 8px;
      background: #f1f5f9;
      border-radius: 4px;
      white-space: nowrap;
    }

    /* 响应式 */
    @media (max-width: 768px) {
      .container { padding: 16px; }
      .stats-grid { grid-template-columns: repeat(2, 1fr); }
      .detail-grid { grid-template-columns: 1fr; }
      .toolbar { flex-direction: column; gap: 12px; }
      .search-input { width: 100%; max-width: 100%; }
      .date-picker-container { width: 100%; flex-direction: column; align-items: stretch; }
      .date-picker-wrapper { width: 100%; justify-content: center; }
      .date-display, .pagination-info { text-align: center; margin: 4px 0; }
      .day-header { flex-direction: column; align-items: flex-start; gap: 4px; }
    }
