/* ============================================================
   华为产品运营助手 - 样式表
   整体色调：灰蓝浅色为主，各模块用颜色区分
   ============================================================ */

/* ========== 基础重置 ========== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg-primary: #eef2f7;
  --bg-secondary: #f7f9fc;
  --bg-card: #ffffff;
  --text-primary: #2c3e50;
  --text-secondary: #5a6c7d;
  --text-tertiary: #8a9aaa;
  --border-color: #dde4ed;
  --shadow-sm: 0 1px 4px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 2px 12px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 4px 24px rgba(0, 0, 0, 0.10);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --header-height: 64px;
  --primary-blue: #3a6ea5;
}

body {
  font-family: 'Microsoft YaHei', 'PingFang SC', 'Helvetica Neue', Arial, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  font-size: 14px;
  line-height: 1.6;
  min-height: 100vh;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ========== 顶部导航栏 ========== */
.header {
  height: var(--header-height);
  background: linear-gradient(135deg, #2c5282 0%, #3a6ea5 100%);
  display: flex;
  align-items: center;
  padding: 0 28px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header__logo {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #fff;
}

.header__logo-icon {
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.header__title {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 1px;
}

.header__subtitle {
  font-size: 12px;
  opacity: 0.8;
  margin-left: 4px;
}

.header__right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 20px;
  color: rgba(255, 255, 255, 0.9);
}

.header__user {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  cursor: pointer;
  padding: 6px 16px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.1);
  transition: background 0.2s;
}

.header__user:hover {
  background: rgba(255, 255, 255, 0.2);
}

.header__avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
}

/* ========== 面包屑导航 ========== */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border-color);
  font-size: 13px;
}

.breadcrumb__item {
  color: var(--text-secondary);
  cursor: pointer;
  transition: color 0.2s;
}

.breadcrumb__item:hover {
  color: var(--primary-blue);
}

.breadcrumb__item--active {
  color: var(--text-primary);
  font-weight: 600;
}

.breadcrumb__separator {
  color: var(--text-tertiary);
  font-size: 11px;
}

/* ========== 主容器 ========== */
.main-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 24px 28px;
}

/* ========== 首页布局 ========== */
.home-layout {
  display: flex;
  gap: 24px;
  align-items: flex-start;
}

/* --- 左侧通知栏 --- */
.notice-panel {
  flex: 0 0 38%;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.notice-panel__header {
  padding: 18px 22px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(135deg, #f0f4fa 0%, #e8eef5 100%);
}

.notice-panel__title {
  font-size: 17px;
  font-weight: 600;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.notice-panel__title i {
  color: #e74c3c;
}

.notice-panel__badge {
  background: #e74c3c;
  color: #fff;
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 10px;
  font-weight: 500;
}

.notice-panel__more {
  font-size: 12px;
  color: var(--text-tertiary);
  cursor: pointer;
  transition: color 0.2s;
}

.notice-panel__more:hover {
  color: var(--primary-blue);
}

.notice-list {
  max-height: 640px;
  overflow-y: auto;
}

.notice-list::-webkit-scrollbar {
  width: 5px;
}

.notice-list::-webkit-scrollbar-thumb {
  background: #c5d1de;
  border-radius: 3px;
}

.notice-item {
  padding: 16px 22px;
  border-bottom: 1px solid #eef2f7;
  cursor: pointer;
  transition: background 0.2s;
}

.notice-item:hover {
  background: #f5f8fc;
}

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

.notice-item__header {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 4px;
}

.notice-item__date {
  font-size: 11px;
  color: var(--text-tertiary);
}

.notice-item__title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 6px;
  line-height: 1.5;
}

.notice-item__brief {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* --- 右侧模块区 --- */
.module-panel {
  flex: 1;
}

.module-panel__title {
  font-size: 17px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.module-panel__title i {
  color: var(--primary-blue);
}

.module-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.module-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  border-top: 4px solid transparent;
}

.module-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.module-card__top {
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.module-card__icon {
  font-size: 38px;
  color: #fff;
  z-index: 1;
}

.module-card__deco {
  position: absolute;
  right: -10px;
  bottom: -15px;
  font-size: 70px;
  opacity: 0.12;
  color: #fff;
}

.module-card__body {
  padding: 16px 20px;
  text-align: center;
}

.module-card__name {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.module-card__desc {
  font-size: 12px;
  color: var(--text-tertiary);
}

.module-card__arrow {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-tertiary);
  font-size: 14px;
  opacity: 0;
  transition: opacity 0.2s, transform 0.2s;
}

.module-card:hover .module-card__arrow {
  opacity: 1;
  transform: translateY(-50%) translateX(4px);
}

/* ========== 二级页面通用 ========== */
.level2-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 20px 28px;
}

.module-header {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 22px 28px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: var(--shadow-sm);
}

.module-header__icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: #fff;
  flex-shrink: 0;
}

.module-header__info h2 {
  font-size: 20px;
  font-weight: 600;
  color: var(--text-primary);
}

.module-header__info p {
  font-size: 13px;
  color: var(--text-tertiary);
  margin-top: 2px;
}

/* --- 分类标签 --- */
.category-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.category-tab {
  padding: 8px 20px;
  border-radius: 20px;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 6px;
}

.category-tab:hover {
  border-color: var(--primary-blue);
  color: var(--primary-blue);
}

.category-tab--active {
  color: #fff;
  border-color: transparent;
}

/* --- 搜索栏 --- */
.search-bar {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 14px 20px;
  margin-bottom: 16px;
  display: flex;
  gap: 12px;
  align-items: center;
  box-shadow: var(--shadow-sm);
}

.search-input {
  flex: 1;
  padding: 10px 16px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  font-size: 13px;
  outline: none;
  transition: border-color 0.2s;
  font-family: inherit;
}

.search-input:focus {
  border-color: var(--primary-blue);
}

.search-btn {
  padding: 10px 24px;
  background: var(--primary-blue);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 13px;
  cursor: pointer;
  transition: background 0.2s;
  font-family: inherit;
}

.search-btn:hover {
  background: #2c5282;
}

/* --- 数据表格 --- */
.data-table-wrap {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: auto;
  max-height: 70vh;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.data-table thead {
  background: #f0f4fa;
  position: sticky;
  top: 0;
  z-index: 10;
}

.data-table th {
  padding: 14px 16px;
  text-align: left;
  font-weight: 600;
  color: var(--text-secondary);
  white-space: nowrap;
  border-bottom: 2px solid var(--border-color);
  background: #f0f4fa;
}

.data-table td {
  padding: 12px 16px;
  border-bottom: 1px solid #eef2f7;
  color: var(--text-primary);
}

.data-table tbody tr {
  transition: background 0.15s;
  cursor: pointer;
}

.data-table tbody tr:hover {
  background: #f5f8fc;
}

.data-table tbody tr:last-child td {
  border-bottom: none;
}

/* --- 状态标签 --- */
.status-tag {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 500;
}

.status-tag--green {
  background: #e8f5e9;
  color: #2e7d32;
}

.status-tag--red {
  background: #fbe9e7;
  color: #c62828;
}

.status-tag--orange {
  background: #fff3e0;
  color: #e65100;
}

.status-tag--blue {
  background: #e3f2fd;
  color: #1565c0;
}

.status-tag--gray {
  background: #f0f0f0;
  color: #757575;
}

/* --- 趋势箭头 --- */
.trend-up { color: #e74c3c; font-weight: bold; }
.trend-down { color: #27ae60; font-weight: bold; }
.trend-flat { color: #95a5a6; font-weight: bold; }

/* ========== 三级详情页 ========== */
.level3-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 28px;
}

.detail-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  margin-bottom: 20px;
}

.detail-card__header {
  padding: 22px 28px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.detail-card__title {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
}

.detail-card__code {
  font-size: 13px;
  color: var(--text-tertiary);
}

.detail-card__body {
  padding: 24px 28px;
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 18px;
}

.detail-item {
  padding: 16px 18px;
  background: var(--bg-secondary);
  border-radius: var(--radius-md);
  border-left: 3px solid var(--primary-blue);
}

.detail-item__label {
  font-size: 12px;
  color: var(--text-tertiary);
  margin-bottom: 6px;
}

.detail-item__value {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-primary);
}

/* --- 返回按钮 --- */
.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  font-size: 13px;
  cursor: pointer;
  color: var(--text-secondary);
  transition: all 0.2s;
  margin-bottom: 16px;
  font-family: inherit;
}

.back-btn:hover {
  border-color: var(--primary-blue);
  color: var(--primary-blue);
}

/* ========== 统计卡片 ========== */
.stats-row {
  display: flex;
  gap: 16px;
  margin-bottom: 20px;
}

.stat-card {
  flex: 1;
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 18px 22px;
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  gap: 14px;
}

.stat-card__icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: #fff;
  flex-shrink: 0;
}

.stat-card__value {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-primary);
}

.stat-card__label {
  font-size: 12px;
  color: var(--text-tertiary);
  margin-top: 2px;
}

/* ========== 动画 ========== */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.fade-in {
  animation: fadeIn 0.3s ease;
}

/* ========== 空状态 ========== */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-tertiary);
}

.empty-state i {
  font-size: 48px;
  margin-bottom: 12px;
  opacity: 0.4;
}

/* ========== 页脚 ========== */
.footer {
  text-align: center;
  padding: 20px;
  font-size: 12px;
  color: var(--text-tertiary);
}

/* ========== 库存搜索栏优化 ========== */
.search-bar.stock-search {
  flex-wrap: wrap;
}

.search-bar.stock-search .search-input {
  max-width: 220px;
}

/* 库存信息提示条 */
.stock-info-banner {
  background: #e4f5f5;
  border: 1px solid #b8e0e0;
  border-radius: var(--radius-sm);
  padding: 10px 16px;
  margin-bottom: 12px;
  font-size: 12px;
  color: #2a6e6e;
  display: flex;
  align-items: center;
  gap: 8px;
}

.stock-info-banner i {
  color: #3aa9a9;
}

.stock-info-banner strong {
  color: #1a5e5e;
}

/* ========== 价格体系模块 ========== */
.search-bar.price-search-bar {
  flex-wrap: wrap;
  align-items: center;
}

.price-select {
  padding: 8px 12px;
  border: 1px solid #d0dae6;
  border-radius: var(--radius-sm);
  font-size: 13px;
  color: #333;
  background: #fff;
  min-width: 150px;
  max-width: 220px;
  cursor: pointer;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.price-select:hover {
  border-color: #4a90d9;
}

.price-select:focus {
  border-color: #4a90d9;
  box-shadow: 0 0 0 2px rgba(74, 144, 217, 0.15);
}

/* ========== 通知详情页 ========== */
.notice-detail {
  max-width: 900px;
  margin: 0 auto;
  padding: 24px 28px 40px;
}

.notice-detail__card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 32px 36px;
  margin-top: 16px;
}

.notice-detail__header {
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 20px;
  margin-bottom: 24px;
}

.notice-detail__title {
  font-size: 22px;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.4;
  margin: 0 0 12px;
}

.notice-detail__meta {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 13px;
  color: var(--text-tertiary);
}

.notice-detail__date i {
  margin-right: 5px;
}

.notice-detail__brief {
  background: #f0f6ff;
  border-left: 4px solid #4a90d9;
  border-radius: 6px;
  padding: 14px 18px;
  margin-bottom: 24px;
  font-size: 14px;
  color: #2c5282;
  line-height: 1.7;
}

.notice-detail__brief i {
  color: #4a90d9;
  margin-right: 8px;
  font-size: 13px;
}

.notice-detail__content {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.9;
  margin-bottom: 28px;
}

.notice-attachments {
  border-top: 1px dashed var(--border-color);
  padding-top: 22px;
}

.notice-attachments__title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.notice-attachment__item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: #f8fafc;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  margin-bottom: 8px;
  font-size: 13px;
}

.notice-attachment__item i {
  color: #4a90d9;
}

.notice-attachment__name {
  flex: 1;
  color: var(--text-primary);
}

.notice-attachment__link {
  color: #4a90d9;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}

.notice-attachment__link:hover {
  color: #2a6fc9;
}

/* ========== 通知详情页 - 图片展示 ========== */
.notice-images-section {
  margin-bottom: 28px;
  border-top: 1px dashed var(--border-color);
  padding-top: 22px;
}

.notice-images-section__title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.notice-images-section__title i {
  color: #e84393;
}

.notice-images-grid {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.notice-image-item {
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  transition: box-shadow 0.2s;
  cursor: zoom-in;
}

.notice-image-item:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}

.notice-image-item img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}

/* ========== 通知详情页 - PDF嵌入查看器 ========== */
.notice-pdf-section {
  margin-bottom: 28px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.notice-pdf-section__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  background: linear-gradient(135deg, #f0f4fa 0%, #e8eef5 100%);
  border-bottom: 1px solid var(--border-color);
}

.notice-pdf-section__title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.notice-pdf-section__title i {
  color: #e74c3c;
  font-size: 18px;
}

.notice-pdf-section__download {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 16px;
  background: #e74c3c;
  color: #fff;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 500;
  transition: background 0.2s;
}

.notice-pdf-section__download:hover {
  background: #c0392b;
}

.notice-pdf-viewer {
  width: 100%;
  height: 600px;
  background: #f5f5f5;
}

.notice-pdf-viewer iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* ========== KPI文档列表 ========== */
.kpi-doc-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.kpi-doc-card {
  display: flex;
  align-items: center;
  gap: 20px;
  background: var(--bg-card);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  padding: 22px 24px;
  cursor: pointer;
  transition: all 0.25s ease;
  border-left: 4px solid #d9534f;
}

.kpi-doc-card:hover {
  transform: translateX(4px);
  box-shadow: var(--shadow-md);
}

.kpi-doc-card__icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-sm);
  background: #f8fafc;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  flex-shrink: 0;
}

.kpi-doc-card__body {
  flex: 1;
  min-width: 0;
}

.kpi-doc-card__title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 6px;
  line-height: 1.4;
}

.kpi-doc-card__desc {
  font-size: 12px;
  color: var(--text-tertiary);
  line-height: 1.5;
  margin-bottom: 8px;
}

.kpi-doc-card__meta {
  display: flex;
  gap: 14px;
  font-size: 11px;
  color: var(--text-tertiary);
}

.kpi-doc-card__meta span {
  display: flex;
  align-items: center;
  gap: 4px;
}

.kpi-doc-card__type {
  background: #fbeae9;
  color: #d9534f;
  padding: 2px 8px;
  border-radius: 4px;
  font-weight: 500;
}

.kpi-doc-card__action {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: #d9534f;
  font-size: 12px;
  font-weight: 500;
  flex-shrink: 0;
  padding-left: 16px;
  border-left: 1px solid var(--border-color);
}

.kpi-doc-card__action i {
  font-size: 20px;
}

.kpi-doc-card:hover .kpi-doc-card__action {
  color: #c0392b;
}

/* ========== KPI Word文档在线查看 ========== */
.kpi-doc-text-section {
  margin-top: 20px;
}

.kpi-doc-text-section__toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 20px;
  background: #f0f4f8;
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  border: 1px solid var(--border-color);
  border-bottom: none;
}

.kpi-doc-text-section__label {
  font-size: 13px;
  font-weight: 600;
  color: #2b579a;
  display: flex;
  align-items: center;
  gap: 8px;
}

.kpi-doc-text-content {
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  padding: 36px 48px;
  max-height: 700px;
  overflow-y: auto;
  line-height: 1.9;
}

.kpi-doc-text__title {
  font-size: 20px;
  font-weight: 700;
  text-align: center;
  color: var(--text-primary);
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--border-color);
}

.kpi-doc-text__h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  margin-top: 20px;
  margin-bottom: 8px;
}

.kpi-doc-text__h4 {
  font-size: 14px;
  font-weight: 600;
  color: #2a6fc9;
  margin-top: 14px;
  margin-bottom: 6px;
}

.kpi-doc-text__p {
  font-size: 13.5px;
  color: var(--text-secondary);
  margin-bottom: 4px;
  text-indent: 0;
}

/* ========== 市场价格模块 ========== */
.market-loading {
  text-align: center;
  padding: 60px 20px;
  color: #999;
  font-size: 15px;
}

.market-loading i {
  margin-right: 8px;
  color: #f0a04b;
}

.market-summary-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}

.market-summary-box {
  background: #fff;
  border: 1px solid #e5e5ea;
  border-radius: 12px;
  padding: 16px 12px;
  text-align: center;
  transition: box-shadow 0.2s ease;
}

.market-summary-box:hover {
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.market-summary-box .market-summary-num {
  font-size: 26px;
  font-weight: 700;
  color: #1d1d1f;
  line-height: 1.2;
  margin-bottom: 6px;
}

.market-summary-box .market-summary-desc {
  font-size: 12px;
  color: #86868b;
}

.market-summary--green .market-summary-num { color: #34c759; }
.market-summary--yellow .market-summary-num { color: #ff9500; }
.market-summary--red .market-summary-num { color: #ff3b30; }

.market-table-wrap {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

.market-table-info {
  padding: 12px 16px;
  font-size: 13px;
  color: #86868b;
  border-bottom: 1px solid #f0f0f0;
}

.market-table-info strong {
  color: #f0a04b;
}

.data-table--market {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.data-table--market thead th {
  background: #fafafa;
  padding: 10px 12px;
  text-align: left;
  font-weight: 600;
  color: #555;
  border-bottom: 2px solid #e5e5ea;
  white-space: nowrap;
  position: sticky;
  top: 0;
}

.data-table--market tbody td {
  padding: 8px 12px;
  border-bottom: 1px solid #f0f0f0;
  color: #333;
  white-space: nowrap;
}

.data-table--market tbody tr:hover {
  background: #fefcf8;
}

.table-row-alt {
  background: #fafafa;
}

.market-price-cell {
  font-family: 'SF Mono', 'Monaco', 'Consolas', monospace;
  font-size: 12px;
  color: #555;
}

.market-price-cell--bold {
  font-weight: 700;
  color: #1d1d1f;
  font-size: 13px;
}

.market-diff-cell {
  font-family: 'SF Mono', 'Monaco', 'Consolas', monospace;
  font-size: 12px;
  font-weight: 600;
}

.market-diff--up {
  color: #ff3b30;
}

.market-diff--down {
  color: #34c759;
}

.market-status-badge {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}

.market-status--green {
  background: #d4f5dd;
  color: #1a7d3a;
}

.market-status--yellow {
  background: #fff3d6;
  color: #8a6d1b;
}

.market-status--red {
  background: #fde0de;
  color: #a82820;
}

/* 市场价格模块 - iframe嵌入 */
.market-iframe-container {
  width: 100%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  background: var(--bg-card);
}

.market-iframe {
  width: 100%;
  height: calc(100vh - 180px);
  min-height: 600px;
  border: none;
  display: block;
}

/* ========== 响应式 ========== */
@media (max-width: 1024px) {
  .home-layout {
    flex-direction: column;
  }
  .notice-panel {
    flex: 1;
  }
  .module-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .module-grid {
    grid-template-columns: 1fr;
  }
  .header__title {
    font-size: 16px;
  }
  .header__subtitle {
    display: none;
  }
}

/* ========== 市场价格卡片式展示 ========== */
.market-cards-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.market-product-card {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
  border: 1px solid #eee;
  overflow: hidden;
}

.market-product-card__header {
  padding: 14px 20px;
  background: #f8f9fa;
  border-bottom: 1px solid #eee;
}

.market-product-card__title {
  font-size: 16px;
  font-weight: 600;
  color: #333;
  letter-spacing: 0.5px;
}

.market-product-card__body {
  padding: 0;
}

.market-price-row {
  display: flex;
  align-items: center;
  padding: 14px 20px;
  border-bottom: 1px solid #f0f0f0;
  gap: 20px;
}

.market-price-row:last-child {
  border-bottom: none;
}

.market-price-row__info {
  min-width: 140px;
  flex-shrink: 0;
}

.market-price-row__spec {
  font-size: 15px;
  font-weight: 600;
  color: #333;
}

.market-price-row__color {
  font-size: 13px;
  color: #888;
  margin-top: 2px;
}

.market-price-row__prices {
  display: flex;
  flex: 1;
  gap: 40px;
  justify-content: flex-end;
}

.market-price-col {
  text-align: right;
  min-width: 100px;
}

.market-price-col__label {
  font-size: 12px;
  color: #999;
  margin-bottom: 4px;
}

.market-price-col__value {
  font-size: 16px;
  font-weight: 600;
  color: #333;
}

.market-price-col__value--market {
  color: #4a90d9;
}

.market-price-col__diff {
  font-size: 13px;
  margin-top: 2px;
}

.market-price-col--market {
  min-width: 80px;
}

/* --- Sheet Tabs --- */
.sheet-tabs {
  display: flex;
  gap: 8px;
  margin-top: 16px;
  border-bottom: 2px solid #e2e8f0;
  padding-bottom: 0;
}

.sheet-tab {
  padding: 10px 20px;
  border: none;
  background: #f8fafc;
  color: #64748b;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  border-radius: 6px 6px 0 0;
  transition: all 0.2s;
  margin-bottom: -2px;
  border-bottom: 2px solid transparent;
}

.sheet-tab:hover {
  background: #f1f5f9;
  color: #475569;
}

.sheet-tab--active {
  background: #fff;
  color: #52a447;
  border-bottom: 2px solid #52a447;
  font-weight: 600;
}

@media (max-width: 768px) {
  .sheet-tabs {
    flex-wrap: wrap;
    gap: 4px;
  }
  .sheet-tab {
    padding: 8px 14px;
    font-size: 13px;
    border-radius: 4px;
    margin-bottom: 4px;
    border-bottom: none;
  }
  .sheet-tab--active {
    border-bottom: none;
    background: #52a447;
    color: #fff;
  }
  .market-price-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .market-price-row__prices {
    width: 100%;
    justify-content: space-between;
    gap: 16px;
  }
  .market-price-col {
    min-width: 0;
    flex: 1;
    text-align: center;
  }
}
