/* LINGSCAN C 端 WEB 站 · 音乐分析页 / 上传页 / 历史报告页
   版式取自 docs/refs/音乐分析页-完整还原.html（老罗 11-08 指定），字段位置不改。 */

/* ===== 头部 ===== */
.page-tag {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 12px; background: var(--cw-surface); border: 1px solid var(--cw-line);
  border-radius: 8px; font-size: 12px; color: var(--cw-t-2); margin-bottom: 24px;
}
.page-tag .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--cw-brass); }
.page-title { font-size: 36px; font-weight: 800; color: var(--cw-t-1); letter-spacing: .5px; line-height: 1.2; text-align: center; }
.page-sub { font-size: 15px; color: var(--cw-t-3); margin-top: 12px; line-height: 1.6; text-align: center; }

/* ===== 上传区 ===== */
.upload-zone {
  margin-top: 40px; background: var(--cw-surface); border: 1px solid var(--cw-line);
  border-radius: var(--cw-radius-lg); padding: 64px 48px; display: flex; flex-direction: column;
  align-items: center; text-align: center; transition: border-color .2s, background .2s; cursor: pointer;
}
.upload-zone:hover, .upload-zone.dragover { border-color: var(--cw-line-2); background: var(--cw-surface-2); }
.upload-zone.dragover { border-color: var(--cw-brass); }
.upload-zone.has-file { padding: 32px 40px; }

.upload-icon {
  width: 56px; height: 56px; border-radius: 50%; background: var(--cw-surface-3);
  display: flex; align-items: center; justify-content: center; margin-bottom: 20px;
}
.upload-icon svg { width: 24px; height: 24px; stroke: var(--cw-t-2); }
.upload-title { font-size: 18px; font-weight: 600; color: var(--cw-t-1); }
.upload-desc { font-size: 13px; color: var(--cw-t-3); margin-top: 8px; }
.upload-formats { display: flex; gap: 8px; margin-top: 20px; }
.upload-formats .fmt {
  padding: 5px 12px; background: var(--cw-surface-3); border-radius: 6px;
  font-size: 12px; color: var(--cw-t-3); font-weight: 600; letter-spacing: .5px;
}

.file-chip { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; justify-content: center; }
.file-chip .fname { font-size: 16px; font-weight: 600; color: var(--cw-t-1); word-break: break-all; }
.file-chip .fmeta { font-size: 12px; color: var(--cw-t-3); }
.file-chip .clear {
  font-size: 12px; color: var(--cw-t-3); border: 1px solid var(--cw-line-2);
  border-radius: 8px; padding: 4px 12px;
}
.file-chip .clear:hover { color: var(--cw-t-1); border-color: var(--cw-t-3); }

/* ===== 档位 ===== */
.tier-tabs {
  margin-top: 24px; display: flex; background: var(--cw-surface);
  border-radius: var(--cw-radius-lg); overflow: hidden; border: 1px solid var(--cw-line);
}
.tier-tabs .tier {
  flex: 1; padding: 14px 10px; text-align: center; font-size: 14px; color: var(--cw-t-3);
  transition: color .15s, background .15s; border-right: 1px solid var(--cw-line);
  display: flex; flex-direction: column; gap: 2px; align-items: center;
}
.tier-tabs .tier:last-child { border-right: none; }
.tier-tabs .tier:hover { color: var(--cw-t-2); }
.tier-tabs .tier.active { color: var(--cw-t-1); font-weight: 600; background: var(--cw-surface-2); box-shadow: inset 0 -2px 0 var(--cw-brass); }
.tier-tabs .tier .t-sub { font-size: 11px; font-weight: 400; color: var(--cw-t-4); }
.tier-tabs .tier.active .t-sub { color: var(--cw-t-3); }

/* ===== 主按钮 ===== */
.analyze-btn {
  margin-top: 16px; width: 100%; padding: 18px; background: var(--cw-t-1); color: #151618;
  border-radius: var(--cw-radius-lg); font-size: 16px; font-weight: 700;
  display: flex; align-items: center; justify-content: center; gap: 12px;
  transition: background .15s, transform .15s;
}
.analyze-btn:hover:not(:disabled) { background: #fff; transform: translateY(-1px); }
.analyze-btn:disabled { opacity: .55; cursor: not-allowed; transform: none; }
.analyze-btn .price-note { font-size: 13px; font-weight: 400; color: var(--cw-t-3); margin-left: 8px; }
.analyze-btn .spinner {
  width: 16px; height: 16px; border-radius: 50%; border: 2px solid rgba(0, 0, 0, .25);
  border-top-color: #151618; animation: cw-spin .8s linear infinite;
}
@keyframes cw-spin { to { transform: rotate(360deg); } }

.bottom-note { margin-top: 20px; font-size: 13px; color: var(--cw-t-3); text-align: center; }
.bottom-note a { color: var(--cw-brass-light); }

/* ===== 任务进度 / 报错 ===== */
.job-panel { margin-top: 24px; background: var(--cw-surface); border: 1px solid var(--cw-line); border-radius: var(--cw-radius-lg); padding: 24px 28px; }
.job-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.job-head h3 { font-size: 16px; font-weight: 700; color: var(--cw-t-1); }
.job-head .phase { font-size: 13px; color: var(--cw-brass-light); }
.job-bar { height: 6px; background: var(--cw-surface-3); border-radius: 3px; overflow: hidden; }
.job-bar i { display: block; height: 100%; width: 12%; background: var(--cw-brass); border-radius: 3px; transition: width .5s ease; }
.job-steps { display: flex; gap: 18px; margin-top: 14px; font-size: 12px; color: var(--cw-t-4); flex-wrap: wrap; }
.job-steps span.on { color: var(--cw-t-2); }
.job-steps span.done { color: var(--cw-teal); }
.job-foot { margin-top: 14px; font-size: 12px; color: var(--cw-t-4); display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.job-foot button { font-size: 12px; color: var(--cw-t-3); text-decoration: underline; }

.err-panel {
  margin-top: 24px; background: rgba(184, 92, 92, .1); border: 1px solid rgba(184, 92, 92, .35);
  border-radius: var(--cw-radius-lg); padding: 18px 24px; font-size: 14px; color: var(--cw-t-1);
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
}
.err-panel .err-act { display: flex; gap: 10px; flex-wrap: wrap; }
.err-panel a, .err-panel button {
  padding: 8px 16px; border-radius: var(--cw-radius); background: var(--cw-surface-2);
  color: var(--cw-t-1); font-size: 13px;
}

/* ===== 报告 ===== */
.report-card { margin-top: 32px; background: var(--cw-surface); border: 1px solid var(--cw-line); border-radius: var(--cw-radius-lg); padding: 32px; }
.report-card.real { border-color: rgba(232, 134, 42, .35); }
.report-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
.report-head h3 { font-size: 20px; font-weight: 700; color: var(--cw-t-1); word-break: break-all; }
.report-badge { padding: 5px 12px; background: var(--cw-surface-3); border-radius: 6px; font-size: 12px; color: var(--cw-t-3); }
.report-summary { font-size: 14px; color: var(--cw-t-2); line-height: 1.8; padding-bottom: 24px; border-bottom: 1px solid var(--cw-line); }
.report-row { display: flex; padding: 14px 0; border-bottom: 1px solid var(--cw-line); }
.report-row:last-of-type { border-bottom: none; }
.report-label { width: 100px; flex-shrink: 0; font-size: 13px; color: var(--cw-t-3); }
.report-value { flex: 1; font-size: 14px; color: var(--cw-t-1); min-width: 0; }
.report-value .sub { color: var(--cw-t-3); font-size: 12px; }
.report-block { padding-top: 20px; margin-top: 20px; border-top: 1px solid var(--cw-line); }
.report-block .b-label { font-size: 13px; color: var(--cw-t-3); margin-bottom: 12px; }
.report-block p { font-size: 14px; color: var(--cw-t-2); line-height: 1.8; white-space: pre-wrap; }
.report-actions { display: flex; gap: 10px; margin-top: 24px; flex-wrap: wrap; }
.report-actions button, .report-actions a {
  padding: 10px 18px; border-radius: var(--cw-radius); font-size: 13px; font-weight: 500;
  background: var(--cw-surface-2); color: var(--cw-t-1);
}
.report-actions .primary { background: var(--cw-t-1); color: #151618; font-weight: 700; }
.report-actions button:hover, .report-actions a:hover { filter: brightness(1.12); }

/* ===== 板块 ===== */
.section { margin-top: 80px; }
.section-title { font-size: 32px; font-weight: 800; color: var(--cw-t-1); letter-spacing: .5px; line-height: 1.2; text-align: center; }
.section-sub { font-size: 15px; color: var(--cw-t-3); margin-top: 12px; line-height: 1.6; text-align: center; }

.viz-block { background: var(--cw-surface); border: 1px solid var(--cw-line); border-radius: var(--cw-radius-lg); padding: 32px; margin-top: 32px; }
.viz-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 32px; }
.viz-text { flex: 1; }
.viz-text .tag { display: inline-block; padding: 4px 10px; background: var(--cw-surface-3); border-radius: 6px; font-size: 12px; color: var(--cw-t-3); margin-bottom: 12px; }
.viz-text h4 { font-size: 20px; font-weight: 700; color: var(--cw-t-1); margin-bottom: 12px; }
.viz-text p { font-size: 14px; color: var(--cw-t-3); line-height: 1.7; margin-bottom: 20px; }
.viz-text .demo-btn { padding: 10px 20px; background: var(--cw-surface-3); border-radius: var(--cw-radius); color: var(--cw-t-1); font-size: 13px; font-weight: 500; }
.viz-chart { width: 420px; flex-shrink: 0; background: var(--cw-surface-2); border-radius: var(--cw-radius); padding: 20px; min-height: 280px; }
.radar-chart { width: 200px; height: 200px; margin: 0 auto; position: relative; }
.radar-center { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); text-align: center; }
.radar-center .conf { font-size: 12px; color: var(--cw-brass); margin-top: 4px; }

.steps-row { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 20px; margin-top: 32px; }
.step-card { background: var(--cw-surface); border: 1px solid var(--cw-line); border-radius: var(--cw-radius-lg); padding: 28px; }
.step-num { width: 32px; height: 32px; border-radius: 8px; background: var(--cw-surface-3); display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 700; color: var(--cw-t-3); margin-bottom: 16px; }
.step-card h4 { font-size: 16px; font-weight: 700; color: var(--cw-t-1); margin-bottom: 8px; }
.step-card p { font-size: 13px; color: var(--cw-t-3); line-height: 1.7; }

.audience-row { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-top: 40px; align-items: flex-start; }
.audience-left h3 { font-size: 28px; font-weight: 800; color: var(--cw-t-1); margin-bottom: 16px; }
.audience-left p { font-size: 14px; color: var(--cw-t-3); line-height: 1.7; }
.audience-item { display: flex; gap: 16px; padding: 20px 0; border-bottom: 1px solid var(--cw-line); }
.audience-item:last-child { border-bottom: none; }
.audience-icon { width: 40px; height: 40px; border-radius: 50%; background: var(--cw-surface-3); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.audience-icon svg { width: 18px; height: 18px; stroke: var(--cw-t-3); }
.audience-item h5 { font-size: 15px; font-weight: 600; color: var(--cw-t-1); margin-bottom: 4px; }
.audience-item p { font-size: 13px; color: var(--cw-t-3); line-height: 1.6; }

.cta-block { margin-top: 80px; text-align: center; padding: 60px 0; }
.cta-block h2 { font-size: 32px; font-weight: 800; color: var(--cw-t-1); margin-bottom: 16px; }
.cta-block p { font-size: 15px; color: var(--cw-t-3); margin-bottom: 32px; }
.cta-buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.cta-primary { padding: 14px 28px; background: var(--cw-t-1); color: #151618; border-radius: var(--cw-radius-lg); font-size: 15px; font-weight: 700; }
.cta-secondary { padding: 14px 28px; background: var(--cw-surface); border: 1px solid var(--cw-line-2); color: var(--cw-t-1); border-radius: var(--cw-radius-lg); font-size: 15px; font-weight: 600; }

.pricing-note { margin-top: 60px; text-align: center; font-size: 13px; color: var(--cw-t-3); }
.pricing-note h4 { font-size: 24px; font-weight: 700; color: var(--cw-t-1); margin-bottom: 8px; }

/* ===== FAQ ===== */
.faq-item { border-bottom: 1px solid var(--cw-line); padding: 20px 0; }
.faq-q { display: flex; justify-content: space-between; align-items: center; cursor: pointer; gap: 16px; }
.faq-q h4 { font-size: 16px; font-weight: 600; color: var(--cw-t-1); }
.faq-q .sign { width: 24px; height: 24px; border-radius: 50%; background: var(--cw-surface-3); display: flex; align-items: center; justify-content: center; color: var(--cw-brass); font-size: 14px; flex-shrink: 0; }
.faq-a { margin-top: 12px; font-size: 14px; color: var(--cw-t-3); line-height: 1.7; }

/* ===== 历史报告 ===== */
.hist-list { margin-top: 28px; display: flex; flex-direction: column; gap: 10px; }
.hist-item {
  display: flex; align-items: center; gap: 16px; padding: 16px 20px; background: var(--cw-surface);
  border: 1px solid var(--cw-line); border-radius: var(--cw-radius-lg); transition: border-color .15s, background .15s;
}
.hist-item:hover { border-color: var(--cw-line-2); background: var(--cw-surface-2); }
.hist-item .h-main { flex: 1; min-width: 0; }
.hist-item .h-title { font-size: 15px; font-weight: 600; color: var(--cw-t-1); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hist-item .h-meta { font-size: 12px; color: var(--cw-t-3); margin-top: 3px; }
.hist-item .h-go { font-size: 13px; color: var(--cw-brass-light); flex-shrink: 0; }

.empty-state {
  margin-top: 32px; text-align: center; padding: 64px 24px; background: var(--cw-surface);
  border: 1px dashed var(--cw-line-2); border-radius: var(--cw-radius-lg);
}
.empty-state h3 { font-size: 18px; font-weight: 700; color: var(--cw-t-1); margin-bottom: 10px; }
.empty-state p { font-size: 14px; color: var(--cw-t-3); line-height: 1.7; margin-bottom: 20px; }
.empty-state .go { display: inline-block; padding: 12px 24px; background: var(--cw-t-1); color: #151618; border-radius: var(--cw-radius); font-size: 14px; font-weight: 700; }

.loading-line { margin-top: 28px; font-size: 13px; color: var(--cw-t-3); text-align: center; }

/* 2026-11-13 A-P1-02：分析站内联「贴链接」入口（复用既有视觉语言，不新造样式体系） */
.url-row {
  margin-top: 16px; display: flex; gap: 10px; align-items: stretch; flex-wrap: wrap;
}
.url-row input[type="url"] {
  flex: 1 1 320px; min-width: 0; padding: 12px 14px;
  background: var(--cw-surface); color: var(--cw-t-1);
  border: 1px solid var(--cw-line); border-radius: var(--cw-radius);
  font-size: 14px; outline: none;
}
.url-row input[type="url"]:focus { border-color: var(--cw-brass); }
.url-row input[type="url"]::placeholder { color: var(--cw-t-3); }
.url-btn {
  padding: 12px 22px; background: var(--cw-surface-2); color: var(--cw-t-1);
  border: 1px solid var(--cw-line-2); border-radius: var(--cw-radius);
  font-size: 14px; font-weight: 700; cursor: pointer; white-space: nowrap;
}
.url-btn:hover { border-color: var(--cw-brass); }
.url-btn:disabled { opacity: .55; cursor: default; }

@media (max-width: 900px) {
  .page-title { font-size: 28px; }
  .section-title { font-size: 24px; }
  .upload-zone { padding: 40px 24px; }
  .viz-head { flex-direction: column; }
  .viz-chart { width: 100%; }
  .steps-row { grid-template-columns: 1fr; }
  .audience-row { grid-template-columns: 1fr; }
  .report-label { width: 78px; }
  .report-card { padding: 22px; }
}
