* { margin:0; padding:0; box-sizing:border-box; }
  body { font-family: "Microsoft YaHei", sans-serif; background:#f0f2f5; color:#333; overflow-x:hidden; }
  .header { background:linear-gradient(135deg,#0b5cff,#4a90ff); color:#fff; padding:20px 28px; display:flex; justify-content:space-between; align-items:center; }
  .header h1 { font-size:22px; }
  .header .sub { font-size:13px; opacity:.85; margin-top:4px; }
  .wrap { max-width:1280px; margin:0 auto; padding:20px; }
  .cards { display:grid; grid-template-columns:repeat(4,1fr); gap:16px; margin-bottom:20px; }
  .card { background:#fff; border-radius:10px; padding:18px; box-shadow:0 2px 8px rgba(0,0,0,.06); }
  .card .label { font-size:13px; color:#888; }
  .card .val { font-size:26px; font-weight:700; margin-top:6px; }
  .card .delta { font-size:13px; margin-top:6px; }
  .up { color:#e5484d; } .down { color:#16a34a; } .flat { color:#888; }
  .panel { background:#fff; border-radius:10px; padding:18px; margin-bottom:20px; box-shadow:0 2px 8px rgba(0,0,0,.06); }
  .panel h2 { font-size:16px; margin-bottom:12px; color:#1a1a1a; }
  .chart { width:100%; height:320px; }
  table { width:100%; border-collapse:collapse; font-size:13px; }
  th,td { padding:8px 10px; border-bottom:1px solid #eee; text-align:left; }
  th { background:#f8f9fb; color:#666; font-weight:600; }
  /* 所有列统一左对齐 */
  .sku-name { max-width:280px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
  .tags { display:flex; flex-wrap:wrap; gap:8px; }
  .tag { background:#eef4ff; color:#0b5cff; border-radius:6px; padding:4px 10px; font-size:13px; }
  .tag.hot { background:#fff1f0; color:#e5484d; font-weight:600; }
  .card.clickable { cursor:pointer; transition:box-shadow .15s, transform .15s; }
  .card.clickable:hover { box-shadow:0 6px 18px rgba(11,92,255,.18); transform:translateY(-2px); }
  .grid2 { display:grid; grid-template-columns:1fr 1fr; gap:20px; }
  .table-scroll { overflow-x:auto; }
  table { min-width:720px; }
  @media(max-width:900px){ .cards{grid-template-columns:repeat(2,1fr);} .grid2{grid-template-columns:1fr;} .header{padding:14px 16px; flex-direction:column; align-items:flex-start; gap:10px;} .wrap{padding:12px;} .chart{height:260px;} }
  @media(max-width:480px){ .cards{grid-template-columns:repeat(2,1fr);} .card{padding:12px;} .card .val{font-size:20px;} }

/* ===== 移动端增强（手机兼容） ===== */
@media(max-width:640px){
  .header{padding:12px 14px !important;}
  .header h1{font-size:17px !important;}
  .header .sub{font-size:11px !important;}
  .hdr-links{flex-wrap:wrap;gap:6px;}
  .hdr-links a,.hdr-links button{padding:6px 10px !important;font-size:12px !important;border-radius:7px !important;}
  .btn-white,.btn{padding:7px 12px !important;font-size:12px !important;}
  .wrap{padding:10px !important;}
  .panel{padding:12px !important;margin-bottom:12px !important;}
  .panel h2{font-size:14px !important;}
  .chart{height:220px !important;}
  table{font-size:12px !important;}
  .table-scroll{overflow-x:auto;-webkit-overflow-scrolling:touch;}
  .toast{left:10px;right:10px;transform:none !important;font-size:12px;}
  .op{flex-wrap:wrap;gap:5px;}
  .btn-sm{padding:5px 9px !important;font-size:12px !important;}
  .row2{grid-template-columns:1fr !important;}
  .sec-body{padding:10px 12px !important;}
  .f-input{padding:9px 10px !important;font-size:13px !important;}
  .code-row button{width:104px;font-size:12px;}
}
@media(max-width:480px){
  .cards{grid-template-columns:repeat(2,1fr) !important;gap:8px !important;}
  .card .val{font-size:18px !important;}
  .card .label{font-size:11px !important;}
  .tabs{grid-template-columns:repeat(2,1fr) !important;gap:8px !important;}
  .tab{padding:10px 6px !important;}
  .tab .val{font-size:20px !important;}
  .tab .label{font-size:11px !important;}
  .grid2{grid-template-columns:1fr !important;gap:10px !important;}
  .drawer{width:100vw !important;right:-100vw !important;}
  .drawer-body{padding:12px !important;}
  .big-thumb{width:140px !important;height:140px !important;}
  .prod .thumb{padding:4px !important;}
}


/* ===== 手机端首页头部按钮统一 ===== */
@media(max-width:640px){
  .header > div:last-child{width:100%;flex-wrap:wrap;gap:8px;}
  .header > div:last-child a,
  .header > div:last-child button{
    flex:1 1 calc(50% - 8px);min-width:0;box-sizing:border-box;
    display:flex;align-items:center;justify-content:center;text-align:center;
    padding:9px 6px !important;font-size:12px !important;border-radius:10px !important;
    background:rgba(255,255,255,.15) !important;border:1px solid rgba(255,255,255,.35) !important;
    color:#fff !important;box-shadow:none !important;margin:0 !important;
  }
  .header > div:last-child button{cursor:pointer;font-weight:700;}
  .header > div:last-child a{font-weight:700;text-decoration:none;}
  .header > div:last-child a[title="用户中心"]{gap:6px;padding:5px 6px !important;}
  .header > div:last-child a[title="用户中心"] span{width:22px !important;height:22px !important;flex-shrink:0;}
}


/* ===== 手机端 SKU 排行表格（固定布局压缩列宽，数据全保留不滑动） ===== */
.sku-name{max-width:90px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;cursor:pointer;color:#0b5cff;}
.sku-name.full{max-width:none;white-space:normal;overflow:visible;color:#333;}
@media(max-width:640px){
  #skuTable{table-layout:fixed;width:100%;font-size:11px;}
  #skuTable th,#skuTable td{padding:5px 3px !important;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;text-align:left;}
  /* 移动端所有列统一左对齐 */
  #skuTable th:nth-child(1){width:17%;}
  #skuTable th:nth-child(2){width:21%;}
  #skuTable th:nth-child(3){width:11%;}
  #skuTable th:nth-child(4){width:9%;}
  #skuTable th:nth-child(5){width:10%;}
  #skuTable th:nth-child(6){width:9%;}
  #skuTable th:nth-child(7){width:9%;}
  #skuTable th:nth-child(8){width:14%;}
}


/* ===== 移动端全面宽度控制（数据控制在屏幕内） ===== */
@media(max-width:640px){
  html,body{max-width:100%;overflow-x:hidden !important;}
  .wrap{max-width:100%;padding:10px !important;overflow-x:hidden;}
  .panel{max-width:100%;overflow:hidden;}
  .chart{max-width:100%;width:100% !important;}
  .cards,.grid2{max-width:100%;}
  .tags{display:flex;flex-wrap:wrap;word-break:break-all;overflow-wrap:anywhere;}
  .tags .tag{max-width:100%;word-break:break-all;}
  #skuTable{table-layout:fixed;width:100% !important;max-width:100%;}
  .card{max-width:100%;}
}


/* AI日报表格样式 */
#aiReport table {
    width: 100%;
    border-collapse: collapse;
    margin: 12px 0;
    font-size: 13px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
#aiReport table th {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 10px 12px;
    text-align: left;
    font-weight: 600;
    font-size: 13px;
}
#aiReport table td {
    padding: 9px 12px;
    border-bottom: 1px solid #f0f0f0;
    color: #333;
}
#aiReport table tr:nth-child(even) {
    background-color: #f8f9ff;
}
#aiReport table tr:hover {
    background-color: #eef1ff;
}
#aiReport table tr:last-child td {
    border-bottom: none;
}
/* AI日报标题样式 */
#aiReport h1, #aiReport h2, #aiReport h3 {
    color: #4a5568;
    margin: 16px 0 8px 0;
    font-weight: 600;
}
#aiReport h1 { font-size: 18px; border-bottom: 2px solid #667eea; padding-bottom: 6px; }
#aiReport h2 { font-size: 16px; color: #5a67d8; }
#aiReport h3 { font-size: 14px; color: #667eea; }
/* AI日报列表样式 */
#aiReport ul, #aiReport ol {
    margin: 8px 0;
    padding-left: 24px;
}
#aiReport li {
    margin: 4px 0;
    line-height: 1.7;
}
/* AI日报强调样式 */
#aiReport strong {
    color: #e53e3e;
    font-weight: 600;
}
#aiReport hr {
    border: none;
    border-top: 1px dashed #cbd5e0;
    margin: 16px 0;
}

/* 日报切换按钮 */
.report-switch-btn {
    display: inline-block;
    margin-left: 12px;
    padding: 4px 12px;
    font-size: 12px;
    font-weight: 500;
    color: #667eea;
    background: white;
    border: 1px solid #667eea;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    vertical-align: middle;
}
.report-switch-btn:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-color: transparent;
}

/* AI日报优化样式 */
.ai-report-optimized {
    background: transparent;
    padding: 0;
    border-radius: 0;
    box-shadow: none;
    line-height: 1.5;
}
.ai-report-optimized h1 {
    font-size: 17px;
    color: #1f2937;
    border-bottom: 2px solid #e5e7eb;
    padding-bottom: 6px;
    margin: 16px 0 8px;
    font-weight: 700;
}
.ai-report-optimized h2 {
    font-size: 16px;
    color: #4080ff;
    font-weight: 700;
    margin: 14px 0 6px;
    padding-left: 10px;
    border-left: 4px solid #4080ff;
}
.ai-report-optimized h3 {
    font-size: 15px;
    color: #6098ff;
    font-weight: 600;
    margin: 12px 0 5px;
}
.ai-report-optimized p {
    margin: 6px 0;
    color: #4b5563;
    line-height: 1.6;
    font-size: 14px;
}
.ai-report-optimized ul, .ai-report-optimized ol {
    margin: 8px 0;
    padding-left: 16px;
}
.ai-report-optimized li {
    margin: 4px 0;
    color: #4b5563;
    line-height: 1.6;
    font-size: 14px;
    list-style: none;
    padding-left: 10px;
    border-left: 3px solid #4080ff;
}
.ai-report-optimized strong {
    color: #1f2937;
    font-weight: 600;
}
.ai-report-optimized hr {
    margin: 12px 0;
    border: none;
    border-top: 1px solid #e5e7eb;
}
.ai-report-optimized table {
    width: 100%;
    border-collapse: collapse;
    margin: 12px 0;
    font-size: 13px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.ai-report-optimized thead th {
    background: linear-gradient(135deg, #4080ff 0%, #6098ff 100%);
    color: white;
    padding: 10px 12px;
    text-align: left;
    font-weight: 600;
    border: 1px solid rgba(255,255,255,0.2);
    font-size: 13px;
}
.ai-report-optimized tbody td {
    padding: 8px 12px;
    color: #4b5563;
    border: 1px solid #e5e7eb;
    font-size: 13px;
}
.ai-report-optimized tbody tr:nth-child(even) {
    background-color: #f8fafc;
}
.ai-report-optimized tbody tr:hover {
    background-color: #f0f5ff;
}
.ai-report-optimized tbody tr:last-child td {
    border-bottom: none;
}
.ai-report-optimized td:first-child {
    color: #1f2937;
    font-weight: 600;
}
/* AI日报V2优化样式 - 更紧凑、更具商业感 */
.ai-report-optimized {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    line-height: 1.6;
    color: #1a202c;
    font-size: 13px;
}

/* 二级标题 - 板块标题，卡片式设计 */
.ai-report-optimized h2 {
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    margin: 16px 0 8px 0;
    padding: 10px 14px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
    position: relative;
    overflow: hidden;
}

.ai-report-optimized h2::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: rgba(255,255,255,0.5);
}

/* 三级标题 - 副标题，更紧凑 */
.ai-report-optimized h3 {
    font-size: 13px;
    font-weight: 600;
    color: #2d3748;
    margin: 12px 0 4px 0;
    padding: 6px 10px;
    background: linear-gradient(90deg, #f0f4ff 0%, transparent 100%);
    border-radius: 4px;
    border-left: 3px solid #667eea;
}

/* 段落 - 更紧凑 */
.ai-report-optimized p {
    margin: 6px 0;
    color: #4a5568;
    font-size: 13px;
    line-height: 1.6;
}

/* 列表 - 更紧凑 */
.ai-report-optimized ul, .ai-report-optimized ol {
    margin: 6px 0;
    padding-left: 20px;
}

.ai-report-optimized li {
    margin: 3px 0;
    color: #4a5568;
    font-size: 13px;
    line-height: 1.6;
}

/* 粗体 - 商业感 */
.ai-report-optimized strong {
    color: #1a202c;
    font-weight: 600;
}

/* 分隔线 - 更 subtle */
.ai-report-optimized hr {
    border: none;
    height: 1px;
    background: linear-gradient(90deg, transparent, #e2e8f0, transparent);
    margin: 12px 0;
}

/* 表格 - 更紧凑、更具商业感 */
.ai-report-optimized table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin: 8px 0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    font-size: 12px;
}

.ai-report-optimized thead th {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 10px 12px;
    text-align: left;
    font-weight: 600;
    font-size: 12px;
    letter-spacing: 0.3px;
}

.ai-report-optimized tbody td {
    padding: 8px 12px;
    border-bottom: 1px solid #f0f0f0;
    color: #4a5568;
}

.ai-report-optimized tbody tr:nth-child(even) {
    background: #fafbfc;
}

.ai-report-optimized tbody tr:hover {
    background: #f0f4ff;
    transition: background 0.15s ease;
}

.ai-report-optimized tbody tr:last-child td {
    border-bottom: none;
}

/* 数据高亮 - 商业感 */
.ai-report-optimized td:first-child {
    font-weight: 500;
    color: #2d3748;
}

/* 切换按钮样式优化 - 更紧凑 */
.report-switch-btn {
    margin-left: auto;
    padding: 4px 12px;
    font-size: 12px;
    border: 1.5px solid rgba(255,255,255,0.8);
    border-radius: 16px;
    background: rgba(255,255,255,0.15);
    color: white;
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 500;
    white-space: nowrap;
    backdrop-filter: blur(4px);
}

.report-switch-btn:hover {
    background: rgba(255,255,255,0.3);
    border-color: white;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

/* AI日报V3成熟风格 - 借鉴飞书/Notion/Ant Design，文字清晰可读 */
.ai-report-optimized {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    line-height: 1.7;
    color: #1f2329;
    font-size: 14px;
}

/* 二级标题 - 板块标题，飞书风格：左侧色条+浅灰背景 */
.ai-report-optimized h2 {
    font-size: 16px;
    font-weight: 600;
    color: #1f2329;
    margin: 20px 0 10px 0;
    padding: 10px 14px;
    background: #f7f8fa;
    border-radius: 6px;
    border-left: 4px solid #3370ff;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* 三级标题 - 副标题，紧凑 */
.ai-report-optimized h3 {
    font-size: 14px;
    font-weight: 600;
    color: #1f2329;
    margin: 14px 0 6px 0;
    padding: 6px 0;
    border-bottom: 1px solid #e5e6eb;
}

/* 段落 */
.ai-report-optimized p {
    margin: 8px 0;
    color: #4e5969;
    font-size: 14px;
    line-height: 1.7;
}

/* 列表 - 成熟风格 */
.ai-report-optimized ul, .ai-report-optimized ol {
    margin: 8px 0;
    padding-left: 22px;
}

.ai-report-optimized li {
    margin: 5px 0;
    color: #4e5969;
    font-size: 14px;
    line-height: 1.7;
}

.ai-report-optimized li::marker {
    color: #3370ff;
}

/* 粗体 */
.ai-report-optimized strong {
    color: #1f2329;
    font-weight: 600;
}

/* 分隔线 */
.ai-report-optimized hr {
    border: none;
    height: 1px;
    background: #e5e6eb;
    margin: 16px 0;
}

/* 表格 - Ant Design风格，清晰可读 */
.ai-report-optimized table {
    width: 100%;
    border-collapse: collapse;
    margin: 10px 0;
    border-radius: 6px;
    overflow: hidden;
    font-size: 13px;
    border: 1px solid #e5e6eb;
}

.ai-report-optimized thead th {
    background: #f7f8fa;
    color: #1f2329;
    padding: 10px 12px;
    text-align: left;
    font-weight: 600;
    font-size: 13px;
    border-bottom: 1px solid #e5e6eb;
}

.ai-report-optimized tbody td {
    padding: 10px 12px;
    border-bottom: 1px solid #f2f3f5;
    color: #4e5969;
}

.ai-report-optimized tbody tr:nth-child(even) {
    background: #fafbfc;
}

.ai-report-optimized tbody tr:hover {
    background: #f2f3f5;
    transition: background 0.15s ease;
}

.ai-report-optimized tbody tr:last-child td {
    border-bottom: none;
}

/* 第一列加粗 */
.ai-report-optimized td:first-child {
    font-weight: 500;
    color: #1f2329;
}

/* 切换按钮 - 清晰风格 */
.report-switch-btn {
    margin-left: auto;
    padding: 5px 14px;
    font-size: 13px;
    border: 1px solid #3370ff;
    border-radius: 4px;
    background: #fff;
    color: #3370ff;
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 500;
    white-space: nowrap;
}

.report-switch-btn:hover {
    background: #3370ff;
    color: #fff;
}

/* AI日报V4 - 匹配网站蓝色渐变风格，文字清晰，无emoji */
.ai-report-optimized {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    line-height: 1.7;
    color: #1a1a1a;
    font-size: 14px;
}

/* 二级标题 - 匹配网站蓝色渐变风格 */
.ai-report-optimized h2 {
    font-size: 16px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 18px 0 10px 0;
    padding: 10px 14px;
    background: linear-gradient(90deg, #e8f0fe 0%, #f5f9ff 100%);
    border-radius: 8px;
    border-left: 4px solid #4080ff;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* 三级标题 - 紧凑，蓝色下划线 */
.ai-report-optimized h3 {
    font-size: 14px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 14px 0 6px 0;
    padding: 6px 0;
    border-bottom: 2px solid #4080ff;
    display: inline-block;
}

/* 段落 */
.ai-report-optimized p {
    margin: 8px 0;
    color: #333;
    font-size: 14px;
    line-height: 1.7;
}

/* 列表 - 蓝色圆点，成熟风格 */
.ai-report-optimized ul, .ai-report-optimized ol {
    margin: 8px 0;
    padding-left: 22px;
}

.ai-report-optimized li {
    margin: 5px 0;
    color: #333;
    font-size: 14px;
    line-height: 1.7;
}

.ai-report-optimized li::marker {
    color: #4080ff;
    font-weight: bold;
}

/* 粗体 */
.ai-report-optimized strong {
    color: #1a1a1a;
    font-weight: 600;
}

/* 分隔线 */
.ai-report-optimized hr {
    border: none;
    height: 1px;
    background: linear-gradient(90deg, transparent, #d0e0ff, transparent);
    margin: 14px 0;
}

/* 表格 - 匹配网站蓝色风格，清晰可读 */
.ai-report-optimized table {
    width: 100%;
    border-collapse: collapse;
    margin: 10px 0;
    border-radius: 8px;
    overflow: hidden;
    font-size: 13px;
    border: 1px solid #d0e0ff;
    box-shadow: 0 2px 8px rgba(64, 128, 255, 0.1);
}

.ai-report-optimized thead th {
    background: linear-gradient(90deg, #4080ff 0%, #6098ff 100%);
    color: #fff;
    padding: 10px 12px;
    text-align: left;
    font-weight: 600;
    font-size: 13px;
}

.ai-report-optimized tbody td {
    padding: 10px 12px;
    border-bottom: 1px solid #e8f0fe;
    color: #333;
}

.ai-report-optimized tbody tr:nth-child(even) {
    background: #f5f9ff;
}

.ai-report-optimized tbody tr:hover {
    background: #e8f0fe;
    transition: background 0.15s ease;
}

.ai-report-optimized tbody tr:last-child td {
    border-bottom: none;
}

/* 第一列加粗 */
.ai-report-optimized td:first-child {
    font-weight: 500;
    color: #1a1a1a;
}

/* 切换按钮 - 匹配网站蓝色风格 */
.report-switch-btn {
    margin-left: auto;
    padding: 5px 14px;
    font-size: 13px;
    border: 1px solid #4080ff;
    border-radius: 6px;
    background: #fff;
    color: #4080ff;
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 500;
    white-space: nowrap;
}

.report-switch-btn:hover {
    background: linear-gradient(90deg, #4080ff 0%, #6098ff 100%);
    color: #fff;
    box-shadow: 0 2px 8px rgba(64, 128, 255, 0.3);
}

/* AI日报简约版 - 简洁清晰，文字版报告 */
.ai-report-optimized {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    line-height: 1.8;
    color: #333;
    font-size: 14px;
}

/* 二级标题 - 简约风格 */
.ai-report-optimized h2 {
    font-size: 16px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 20px 0 10px 0;
    padding: 8px 0;
    border-bottom: 2px solid #4080ff;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* 三级标题 - 简约 */
.ai-report-optimized h3 {
    font-size: 14px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 14px 0 6px 0;
    padding: 4px 0;
}

/* 段落 */
.ai-report-optimized p {
    margin: 10px 0;
    color: #555;
    font-size: 14px;
    line-height: 1.8;
}

/* 列表 - 简约 */
.ai-report-optimized ul, .ai-report-optimized ol {
    margin: 10px 0;
    padding-left: 24px;
}

.ai-report-optimized li {
    margin: 6px 0;
    color: #555;
    font-size: 14px;
    line-height: 1.8;
}

/* 粗体 */
.ai-report-optimized strong {
    color: #1a1a1a;
    font-weight: 600;
}

/* 分隔线 */
.ai-report-optimized hr {
    border: none;
    height: 1px;
    background: #eee;
    margin: 16px 0;
}

/* 表格 - 简约清晰 */
.ai-report-optimized table {
    width: 100%;
    border-collapse: collapse;
    margin: 12px 0;
    font-size: 13px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    overflow: hidden;
}

.ai-report-optimized thead th {
    background: #f5f7fa;
    color: #1a1a1a;
    padding: 10px 12px;
    text-align: left;
    font-weight: 600;
    font-size: 13px;
    border-bottom: 2px solid #4080ff;
}

.ai-report-optimized tbody td {
    padding: 10px 12px;
    border-bottom: 1px solid #f0f0f0;
    color: #555;
}

.ai-report-optimized tbody tr:nth-child(even) {
    background: #fafbfc;
}

.ai-report-optimized tbody tr:hover {
    background: #f0f7ff;
}

.ai-report-optimized tbody tr:last-child td {
    border-bottom: none;
}

/* 第一列加粗 */
.ai-report-optimized td:first-child {
    font-weight: 500;
    color: #1a1a1a;
}

/* 切换按钮 - 简约 */
.report-switch-btn {
    margin-left: auto;
    padding: 4px 12px;
    font-size: 12px;
    border: 1px solid #4080ff;
    border-radius: 4px;
    background: #fff;
    color: #4080ff;
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 500;
    white-space: nowrap;
}

.report-switch-btn:hover {
    background: #4080ff;
    color: #fff;
}

/* AI日报纯文字版 - 极简风格，去掉所有装饰 */
.ai-report-optimized {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    line-height: 1.8;
    color: #333;
    font-size: 14px;
}

/* 二级标题 - 纯文字，只加粗 */
.ai-report-optimized h2 {
    font-size: 15px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 16px 0 8px 0;
    padding: 0;
    border: none;
    background: none;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* 三级标题 - 纯文字，只加粗 */
.ai-report-optimized h3 {
    font-size: 14px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 12px 0 4px 0;
    padding: 0;
    border: none;
    background: none;
    display: block;
}

/* 段落 - 纯文字 */
.ai-report-optimized p {
    margin: 8px 0;
    color: #555;
    font-size: 14px;
    line-height: 1.8;
}

/* 列表 - 纯文字 */
.ai-report-optimized ul, .ai-report-optimized ol {
    margin: 8px 0;
    padding-left: 24px;
}

.ai-report-optimized li {
    margin: 4px 0;
    color: #555;
    font-size: 14px;
    line-height: 1.8;
}

/* 粗体 */
.ai-report-optimized strong {
    color: #1a1a1a;
    font-weight: 600;
}

/* 分隔线 */
.ai-report-optimized hr {
    border: none;
    height: 1px;
    background: #eee;
    margin: 12px 0;
}

/* 表格 - 保留基本边框（表格需要边框才能看） */
.ai-report-optimized table {
    width: 100%;
    border-collapse: collapse;
    margin: 10px 0;
    font-size: 13px;
    border: 1px solid #e0e0e0;
}

.ai-report-optimized thead th {
    background: #f5f5f5;
    color: #1a1a1a;
    padding: 8px 10px;
    text-align: left;
    font-weight: 600;
    font-size: 13px;
    border-bottom: 1px solid #e0e0e0;
}

.ai-report-optimized tbody td {
    padding: 8px 10px;
    border-bottom: 1px solid #f0f0f0;
    color: #555;
}

.ai-report-optimized tbody tr:nth-child(even) {
    background: #fafafa;
}

.ai-report-optimized tbody tr:last-child td {
    border-bottom: none;
}

/* 第一列加粗 */
.ai-report-optimized td:first-child {
    font-weight: 500;
    color: #1a1a1a;
}

/* 切换按钮 - 保留基本样式 */
.report-switch-btn {
    margin-left: auto;
    padding: 3px 10px;
    font-size: 12px;
    border: 1px solid #999;
    border-radius: 3px;
    background: #fff;
    color: #666;
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 500;
    white-space: nowrap;
}

.report-switch-btn:hover {
    background: #f5f5f5;
    color: #333;
    border-color: #666;
}

/* 切换按钮 - 网站蓝色渐变风格 */
.report-switch-btn {
    margin-left: auto;
    padding: 6px 16px;
    font-size: 13px;
    border: none;
    border-radius: 6px;
    background: linear-gradient(135deg, #4080ff 0%, #6098ff 100%);
    color: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(64, 128, 255, 0.3);
}

.report-switch-btn:hover {
    background: linear-gradient(135deg, #3070ef 0%, #5088ef 100%);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(64, 128, 255, 0.4);
}

.report-switch-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(64, 128, 255, 0.3);
}

/* 标题显示优化 - 确保完整显示 */
.ai-report-optimized h2 {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    width: 100%;
    box-sizing: border-box;
}

.ai-report-optimized h2::before {
    content: none;
}

/* 标题文字容器 - 确保有足够空间 */
.ai-report-optimized h2 {
    overflow: visible;
    text-overflow: clip;
    white-space: normal;
    word-break: keep-all;
}

/* 切换按钮 - 确保不挤压标题 */
.ai-report-optimized h2 .report-switch-btn {
    flex-shrink: 0;
    margin-left: auto;
}

/* ===== AI日报表格 - 蓝色渐变表头美观样式（紧凑版） ===== */
.ai-table-wrap {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    margin: 10px 0;
    border: 1px solid #e8ecf1;
}

.ai-table-wrap table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    min-width: auto !important;
    table-layout: fixed;
}

.ai-table-wrap thead {
    background: linear-gradient(135deg, #0b5cff 0%, #4a90ff 100%);
}

.ai-table-wrap th {
    background: transparent !important;
    color: #fff !important;
    font-weight: 600 !important;
    padding: 10px 12px !important;
    text-align: left !important;
    border-bottom: none !important;
    font-size: 13px !important;
    letter-spacing: 0.3px;
}

.ai-table-wrap th:first-child {
    text-align: left !important;
    width: 25%;
}

.ai-table-wrap td {
    padding: 9px 12px !important;
    border-bottom: 1px solid #f0f2f5 !important;
    text-align: left !important;
    color: #333 !important;
    font-size: 13px !important;
    font-variant-numeric: tabular-nums;
}

.ai-table-wrap td:first-child {
    text-align: left !important;
    font-weight: 500 !important;
    color: #1a1a1a !important;
}

.ai-table-wrap tbody tr:nth-child(even) {
    background-color: #f8fafc;
}

.ai-table-wrap tbody tr:hover {
    background-color: #eef4ff;
    transition: background-color 0.15s ease;
}

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

/* 表格中的数字高亮 */
.ai-table-wrap .num-up {
    color: #e5484d;
    font-weight: 600;
}

.ai-table-wrap .num-down {
    color: #16a34a;
    font-weight: 600;
}

.ai-table-wrap .num-flat {
    color: #888;
}

/* 表格下方的关键指标摘要 */
.ai-table-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 12px;
    padding: 12px 16px;
    background: linear-gradient(135deg, #f0f7ff 0%, #f8fafc 100%);
    border-radius: 8px;
    border: 1px solid #e0ecff;
}

.ai-table-summary .summary-item {
    flex: 1;
    min-width: 120px;
    text-align: center;
}

.ai-table-summary .summary-label {
    font-size: 12px;
    color: #666;
    margin-bottom: 4px;
}

.ai-table-summary .summary-value {
    font-size: 18px;
    font-weight: 700;
    color: #0b5cff;
}

.ai-table-summary .summary-delta {
    font-size: 11px;
    margin-top: 2px;
}

.ai-table-summary .summary-delta.up {
    color: #e5484d;
}

.ai-table-summary .summary-delta.down {
    color: #16a34a;
}


/* 店铺分析风格的AI日报模板 - 优化紧凑版 */
#aiReport {
    margin: 0;
    padding: 0;
    line-height: 1.5;
}
#aiReport .ai-report-optimized {
    background: transparent;
    padding: 0;
    border-radius: 0;
    box-shadow: none;
}
/* 标题样式 - 增大字号，减小间距 */
#aiReport .ai-report-optimized h1 {
    font-size: 17px;
    color: #1f2937;
    border-bottom: 2px solid #e5e7eb;
    padding-bottom: 6px;
    margin: 16px 0 8px;
    font-weight: 700;
}
#aiReport .ai-report-optimized h2 {
    font-size: 16px;
    color: #4080ff;
    font-weight: 700;
    margin: 14px 0 6px;
    padding-left: 10px;
    border-left: 4px solid #4080ff;
}
#aiReport .ai-report-optimized h3 {
    font-size: 15px;
    color: #6098ff;
    font-weight: 600;
    margin: 12px 0 5px;
}
/* 段落样式 - 减小行高和间距 */
#aiReport .ai-report-optimized p {
    margin: 6px 0;
    color: #4b5563;
    line-height: 1.6;
    font-size: 14px;
}
/* 列表样式 - 减小间距 */
#aiReport .ai-report-optimized ul,
#aiReport .ai-report-optimized ol {
    margin: 8px 0;
    padding-left: 16px;
}
#aiReport .ai-report-optimized li {
    margin: 4px 0;
    color: #4b5563;
    line-height: 1.6;
    font-size: 14px;
    list-style: none;
    padding-left: 10px;
    border-left: 3px solid #4080ff;
}
#aiReport .ai-report-optimized strong {
    color: #1f2937;
    font-weight: 600;
}
#aiReport .ai-report-optimized hr {
    margin: 12px 0;
    border: none;
    border-top: 1px solid #e5e7eb;
}
/* 表格样式 - 店铺分析风格，紧凑版 */
#aiReport .ai-table-wrap {
    margin: 12px 0;
    overflow-x: auto;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
#aiReport .ai-table-wrap table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    background: white;
}
#aiReport .ai-table-wrap thead tr {
    background: linear-gradient(135deg, #4080ff 0%, #6098ff 100%);
}
#aiReport .ai-table-wrap th {
    padding: 10px 12px;
    text-align: left;
    color: white;
    font-weight: 600;
    border: 1px solid rgba(255,255,255,0.2);
    font-size: 13px;
}
#aiReport .ai-table-wrap td {
    padding: 8px 12px;
    color: #4b5563;
    border: 1px solid #e5e7eb;
    font-size: 13px;
}
#aiReport .ai-table-wrap tr.alt td {
    background: #f8fafc;
}
#aiReport .ai-table-wrap tr:hover td {
    background: #f0f5ff;
}
#aiReport .ai-table-wrap td:first-child {
    color: #1f2937;
    font-weight: 600;
}
/* 衍生指标摘要 - 紧凑版 */
#aiReport .ai-table-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
    padding: 10px;
    background: #f8fafc;
    border-radius: 8px;
}
#aiReport .summary-item {
    flex: 1;
    min-width: 100px;
    text-align: center;
    padding: 8px;
    background: white;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}
#aiReport .summary-label {
    font-size: 12px;
    color: #6b7280;
    margin-bottom: 4px;
}
#aiReport .summary-value {
    font-size: 16px;
    font-weight: 700;
    color: #4080ff;
}
#aiReport .summary-delta {
    font-size: 11px;
    margin-top: 2px;
}
#aiReport .summary-delta.up {
    color: #16a34a;
}
#aiReport .summary-delta.down {
    color: #dc2626;
}



/* AI智能生成热词区域样式 */
.ai-hotwords-section {
  background: #ffffff;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  border: 1px solid #e8ecf1;
}

.ai-hotwords-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid #f0f2f5;
  flex-wrap: wrap;
  gap: 12px;
}

.ai-hotwords-title {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.ai-hotwords-icon {
  font-size: 24px;
}

.ai-hotwords-text {
  font-size: 18px;
  font-weight: 700;
  color: #1f2937;
}

.ai-hotwords-subtitle {
  font-size: 12px;
  color: #6b7280;
  background: #f3f4f6;
  padding: 4px 10px;
  border-radius: 12px;
}

.ai-hotwords-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

.ai-generate-btn {
  padding: 10px 20px;
  background: linear-gradient(135deg, #0b5cff, #4a90ff);
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(11, 92, 255, 0.3);
}

.ai-generate-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(11, 92, 255, 0.4);
}

.ai-generate-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.ai-hotwords-container {
  background: #fafbfc;
  border-radius: 10px;
  padding: 16px;
  min-height: 80px;
  border: 1px dashed #d1d5db;
}

.ai-hotwords-loading {
  text-align: center;
  color: #9ca3af;
  font-size: 14px;
  padding: 20px 0;
}

.ai-hotwords-info {
  background: linear-gradient(135deg, #eff6ff, #dbeafe);
  border-left: 4px solid #3b82f6;
  padding: 10px 16px;
  border-radius: 6px;
  margin-bottom: 14px;
  font-size: 13px;
  color: #1e40af;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.ai-hotwords-info .info-icon {
  font-size: 16px;
}

.ai-hotwords-info .info-category {
  font-weight: 600;
}

.ai-hotwords-info .info-count {
  background: #3b82f6;
  color: white;
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 600;
}

.ai-hotwords-info .info-cache {
  font-size: 11px;
  color: #6b7280;
  background: white;
  padding: 2px 8px;
  border-radius: 10px;
}

.ai-hotwords-container .tag {
  display: inline-block;
  padding: 8px 16px;
  margin: 6px;
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 20px;
  font-size: 13px;
  color: #374151;
  cursor: pointer;
  transition: all 0.2s ease;
}

.ai-hotwords-container .tag:hover {
  background: #eff6ff;
  border-color: #3b82f6;
  color: #1d4ed8;
  transform: translateY(-1px);
}

.ai-hotwords-container .tag.hot {
  background: linear-gradient(135deg, #fef3c7, #fde68a);
  border-color: #f59e0b;
  color: #92400e;
  font-weight: 600;
}

.ai-hotwords-container .tag.hot:hover {
  background: linear-gradient(135deg, #fde68a, #fcd34d);
}
