f
This commit is contained in:
@@ -162,20 +162,32 @@
|
||||
border-radius: var(--radius);
|
||||
min-height: clamp(168px, 28vw, 220px);
|
||||
background-color: #f0f7ff;
|
||||
background-image: url("/reports/qygl/media/banner.jpg");
|
||||
background-size: cover;
|
||||
background-position: center right;
|
||||
background-repeat: no-repeat;
|
||||
border: none;
|
||||
box-shadow: none;
|
||||
color: var(--ink);
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.header-poster {
|
||||
position: absolute;
|
||||
inset: 0;
|
||||
z-index: 0;
|
||||
display: block;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
object-fit: cover;
|
||||
object-position: center right;
|
||||
pointer-events: none;
|
||||
user-select: none;
|
||||
-webkit-print-color-adjust: exact;
|
||||
print-color-adjust: exact;
|
||||
}
|
||||
|
||||
.header::before {
|
||||
content: "";
|
||||
position: absolute;
|
||||
inset: 0;
|
||||
z-index: 1;
|
||||
pointer-events: none;
|
||||
background: linear-gradient(
|
||||
90deg,
|
||||
@@ -184,21 +196,31 @@
|
||||
rgba(255, 255, 255, 0.25) 68%,
|
||||
transparent 100%
|
||||
);
|
||||
z-index: 0;
|
||||
}
|
||||
|
||||
.header-inner {
|
||||
position: relative;
|
||||
z-index: 1;
|
||||
display: block;
|
||||
max-width: 72%;
|
||||
z-index: 2;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: flex-start;
|
||||
max-width: 78%;
|
||||
padding: 0;
|
||||
margin-top: 0;
|
||||
background: transparent;
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
.header-hero-badges {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
align-items: center;
|
||||
gap: 8px 10px;
|
||||
}
|
||||
|
||||
@media (max-width: 768px) {
|
||||
.header {
|
||||
padding: 20px 14px 18px;
|
||||
background-position: 75% center;
|
||||
min-height: 200px;
|
||||
}
|
||||
.header::before {
|
||||
@@ -209,6 +231,9 @@
|
||||
rgba(255, 255, 255, 0.45) 100%
|
||||
);
|
||||
}
|
||||
.header-poster {
|
||||
object-position: 75% center;
|
||||
}
|
||||
.header-inner {
|
||||
max-width: 100%;
|
||||
}
|
||||
@@ -217,6 +242,8 @@
|
||||
.header-main {
|
||||
padding: 0;
|
||||
min-width: 0;
|
||||
width: 100%;
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
.header-hero-kicker {
|
||||
@@ -683,6 +710,7 @@
|
||||
}
|
||||
|
||||
.report-brand-footer {
|
||||
position: relative;
|
||||
margin: 32px 0 16px;
|
||||
padding: 36px 16px;
|
||||
text-align: center;
|
||||
@@ -691,15 +719,30 @@
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
overflow: hidden;
|
||||
background-color: #f4f8fc;
|
||||
background-image: url("/reports/qygl/media/footer.png");
|
||||
background-size: cover;
|
||||
background-position: center;
|
||||
background-repeat: no-repeat;
|
||||
}
|
||||
|
||||
.footer-poster {
|
||||
position: absolute;
|
||||
inset: 0;
|
||||
z-index: 0;
|
||||
display: block;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
object-fit: cover;
|
||||
object-position: center;
|
||||
pointer-events: none;
|
||||
user-select: none;
|
||||
-webkit-print-color-adjust: exact;
|
||||
print-color-adjust: exact;
|
||||
}
|
||||
|
||||
.report-brand-footer p {
|
||||
position: relative;
|
||||
z-index: 1;
|
||||
margin: 0;
|
||||
padding: 0 16px;
|
||||
font-size: clamp(1rem, 3vw, 1.25rem);
|
||||
font-weight: 700;
|
||||
color: var(--qy-accent);
|
||||
@@ -989,31 +1032,158 @@
|
||||
.section-card .section-body {
|
||||
padding: 18px 16px 20px;
|
||||
}
|
||||
.section-card h2 {
|
||||
padding: 12px 16px 12px 14px;
|
||||
}
|
||||
}
|
||||
|
||||
@page {
|
||||
size: A4 portrait;
|
||||
margin: 10mm 12mm;
|
||||
}
|
||||
|
||||
/* 全页斜向透明红字水印;position:fixed 在 Chrome 打印/PDF 时每页重复 */
|
||||
.report-watermark {
|
||||
position: fixed;
|
||||
left: 50%;
|
||||
top: 50%;
|
||||
width: max-content;
|
||||
max-width: none;
|
||||
transform: translate(-50%, -50%) rotate(-45deg);
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
font-family: var(--font-sans);
|
||||
font-size: 56px;
|
||||
font-weight: 600;
|
||||
letter-spacing: 0.14em;
|
||||
line-height: 1;
|
||||
white-space: nowrap;
|
||||
color: rgba(220, 38, 38, 0.14);
|
||||
pointer-events: none;
|
||||
user-select: none;
|
||||
z-index: 500;
|
||||
-webkit-print-color-adjust: exact;
|
||||
print-color-adjust: exact;
|
||||
}
|
||||
|
||||
/* Headless Chrome 导出 PDF 时使用(不切换 print 媒体,避免海报/布局异常) */
|
||||
body.pdf-export {
|
||||
-webkit-print-color-adjust: exact;
|
||||
print-color-adjust: exact;
|
||||
}
|
||||
body.pdf-export .pdf-actions-fixed,
|
||||
body.pdf-export .pdf-loading-overlay,
|
||||
body.pdf-export .top-nav {
|
||||
display: none !important;
|
||||
}
|
||||
body.pdf-export .page {
|
||||
max-width: none;
|
||||
width: 100%;
|
||||
margin: 0;
|
||||
padding: 0 0 24px;
|
||||
overflow: visible;
|
||||
}
|
||||
body.pdf-export .page-inner {
|
||||
padding: 0 !important;
|
||||
}
|
||||
body.pdf-export .report-sections,
|
||||
body.pdf-export #reportSections {
|
||||
padding: 0 12px;
|
||||
}
|
||||
body.pdf-export .section-card h2 {
|
||||
background: transparent !important;
|
||||
border: none !important;
|
||||
box-shadow: none !important;
|
||||
}
|
||||
body.pdf-export .header {
|
||||
margin: 0 0 16px !important;
|
||||
border: none !important;
|
||||
border-radius: 0 !important;
|
||||
box-shadow: none !important;
|
||||
padding: 28px 20px 24px !important;
|
||||
min-height: clamp(168px, 22vw, 200px) !important;
|
||||
overflow: hidden !important;
|
||||
}
|
||||
body.pdf-export .header-poster {
|
||||
position: absolute !important;
|
||||
inset: 0 !important;
|
||||
width: 100% !important;
|
||||
height: 100% !important;
|
||||
object-fit: cover !important;
|
||||
object-position: center right !important;
|
||||
}
|
||||
body.pdf-export .header::before {
|
||||
display: block !important;
|
||||
}
|
||||
body.pdf-export .header-inner {
|
||||
max-width: 78% !important;
|
||||
text-align: left !important;
|
||||
align-items: flex-start !important;
|
||||
}
|
||||
body.pdf-export .header-main {
|
||||
text-align: left !important;
|
||||
width: 100% !important;
|
||||
}
|
||||
body.pdf-export .header-score {
|
||||
justify-content: flex-start !important;
|
||||
width: 100% !important;
|
||||
margin-top: 12px !important;
|
||||
}
|
||||
body.pdf-export .header-score-inner {
|
||||
display: inline-flex !important;
|
||||
flex-direction: row !important;
|
||||
flex-wrap: nowrap !important;
|
||||
align-items: center !important;
|
||||
justify-content: flex-start !important;
|
||||
gap: 10px !important;
|
||||
max-width: none !important;
|
||||
margin: 0 !important;
|
||||
padding: 0 !important;
|
||||
background: transparent !important;
|
||||
border: none !important;
|
||||
box-shadow: none !important;
|
||||
}
|
||||
body.pdf-export .header-score .label {
|
||||
display: inline-flex !important;
|
||||
margin: 0 !important;
|
||||
background: transparent !important;
|
||||
}
|
||||
body.pdf-export .header-score .score,
|
||||
body.pdf-export .header-score .pill {
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
body.pdf-export .header-poster,
|
||||
body.pdf-export .footer-poster {
|
||||
display: block !important;
|
||||
visibility: visible !important;
|
||||
opacity: 1 !important;
|
||||
-webkit-print-color-adjust: exact !important;
|
||||
print-color-adjust: exact !important;
|
||||
}
|
||||
|
||||
@media print {
|
||||
html,
|
||||
body {
|
||||
background: #fff !important;
|
||||
margin: 0;
|
||||
width: 100%;
|
||||
min-height: auto;
|
||||
-webkit-print-color-adjust: exact;
|
||||
print-color-adjust: exact;
|
||||
}
|
||||
.page {
|
||||
max-width: none;
|
||||
width: 100%;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
border: none;
|
||||
box-shadow: none;
|
||||
border-radius: 0;
|
||||
overflow: visible;
|
||||
}
|
||||
.page::before {
|
||||
height: 2px;
|
||||
display: none;
|
||||
}
|
||||
.page-inner {
|
||||
padding: 0 12mm;
|
||||
padding: 0 !important;
|
||||
}
|
||||
.top-nav {
|
||||
display: none !important;
|
||||
@@ -1023,44 +1193,68 @@
|
||||
display: none !important;
|
||||
}
|
||||
.header {
|
||||
background: linear-gradient(
|
||||
180deg,
|
||||
#e8f0ff 0%,
|
||||
#f8fafc 45%,
|
||||
#ffffff 100%
|
||||
) !important;
|
||||
background-color: #f0f7ff !important;
|
||||
color: var(--ink) !important;
|
||||
box-shadow: none !important;
|
||||
border: 1px solid var(--line);
|
||||
border-left: 3px solid var(--blue-800);
|
||||
border: none !important;
|
||||
border-radius: 0;
|
||||
margin-top: 8px;
|
||||
margin-top: 0;
|
||||
padding: 28px 20px 24px !important;
|
||||
min-height: 180px !important;
|
||||
overflow: hidden !important;
|
||||
page-break-inside: avoid;
|
||||
break-inside: avoid-page;
|
||||
}
|
||||
.header-poster,
|
||||
.footer-poster {
|
||||
position: absolute !important;
|
||||
inset: 0 !important;
|
||||
width: 100% !important;
|
||||
height: 100% !important;
|
||||
max-width: none !important;
|
||||
object-fit: cover !important;
|
||||
-webkit-print-color-adjust: exact !important;
|
||||
print-color-adjust: exact !important;
|
||||
}
|
||||
.header-poster {
|
||||
object-position: center right !important;
|
||||
}
|
||||
.footer-poster {
|
||||
object-position: center !important;
|
||||
}
|
||||
.header-inner {
|
||||
grid-template-columns: 1fr;
|
||||
padding: 20px 0 16px;
|
||||
gap: 20px;
|
||||
padding: 0 !important;
|
||||
margin-top: 0 !important;
|
||||
max-width: 78% !important;
|
||||
gap: 0;
|
||||
background: transparent !important;
|
||||
text-align: left !important;
|
||||
}
|
||||
.header::before {
|
||||
background: linear-gradient(
|
||||
90deg,
|
||||
var(--header-strip-start) 0%,
|
||||
var(--header-strip-mid) 62%,
|
||||
var(--header-strip-end) 100%
|
||||
);
|
||||
display: block !important;
|
||||
}
|
||||
.header-main {
|
||||
padding: 0;
|
||||
text-align: left !important;
|
||||
width: 100% !important;
|
||||
}
|
||||
.header-score-inner {
|
||||
border-top-width: 3px;
|
||||
border-top-color: var(--blue-700);
|
||||
border-color: rgba(37, 99, 235, 0.2);
|
||||
background: #fff !important;
|
||||
display: inline-flex !important;
|
||||
flex-direction: row !important;
|
||||
flex-wrap: nowrap !important;
|
||||
align-items: center !important;
|
||||
justify-content: flex-start !important;
|
||||
gap: 10px !important;
|
||||
background: transparent !important;
|
||||
border: none !important;
|
||||
box-shadow: none;
|
||||
max-width: 260px;
|
||||
margin-left: auto;
|
||||
margin-right: auto;
|
||||
max-width: none !important;
|
||||
margin: 0 !important;
|
||||
padding: 0 !important;
|
||||
}
|
||||
.header-score .label {
|
||||
display: inline-flex !important;
|
||||
background: transparent !important;
|
||||
}
|
||||
.header-main h1.report-title {
|
||||
color: var(--blue-950) !important;
|
||||
@@ -1085,21 +1279,13 @@
|
||||
.header-score {
|
||||
background: transparent !important;
|
||||
border: none !important;
|
||||
margin: 0 !important;
|
||||
justify-content: center;
|
||||
margin: 12px 0 0 !important;
|
||||
justify-content: flex-start !important;
|
||||
width: 100% !important;
|
||||
}
|
||||
.header-score .score {
|
||||
color: var(--blue-900) !important;
|
||||
}
|
||||
.header-score .label {
|
||||
color: var(--muted) !important;
|
||||
}
|
||||
.header-main {
|
||||
text-align: center;
|
||||
width: 100%;
|
||||
}
|
||||
.header-score {
|
||||
width: 100%;
|
||||
color: #fff !important;
|
||||
background: var(--qy-gradient) !important;
|
||||
}
|
||||
.section-card {
|
||||
box-shadow: none;
|
||||
@@ -1113,13 +1299,37 @@
|
||||
background: #fff !important;
|
||||
}
|
||||
.section-card h2 {
|
||||
background: var(--table-head) !important;
|
||||
border-left-color: var(--blue-800);
|
||||
color: var(--ink);
|
||||
background: transparent !important;
|
||||
border: none !important;
|
||||
box-shadow: none !important;
|
||||
color: var(--qy-accent);
|
||||
padding: 0 6px 0 2px !important;
|
||||
page-break-after: avoid;
|
||||
break-after: avoid-page;
|
||||
}
|
||||
.section-card .section-body {
|
||||
padding: 12px 0 16px !important;
|
||||
}
|
||||
.kv-table thead {
|
||||
display: table-header-group;
|
||||
}
|
||||
.kv-table tr,
|
||||
.qy-info-grid tr {
|
||||
page-break-inside: avoid;
|
||||
break-inside: avoid-page;
|
||||
}
|
||||
.record-card,
|
||||
.item-block,
|
||||
.report-brand-footer {
|
||||
page-break-inside: avoid;
|
||||
break-inside: avoid-page;
|
||||
}
|
||||
.report-brand-footer {
|
||||
min-height: 100px !important;
|
||||
padding: 36px 16px !important;
|
||||
margin: 24px 0 0;
|
||||
background-color: #f4f8fc !important;
|
||||
}
|
||||
.item-list li {
|
||||
page-break-inside: auto;
|
||||
break-inside: auto;
|
||||
@@ -1133,11 +1343,17 @@
|
||||
color: var(--ink);
|
||||
text-decoration: none;
|
||||
}
|
||||
.report-watermark {
|
||||
display: block !important;
|
||||
font-size: 42pt;
|
||||
color: rgba(220, 38, 38, 0.16) !important;
|
||||
}
|
||||
}
|
||||
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div class="report-watermark" aria-hidden="true">海宇数据</div>
|
||||
<div class="page">
|
||||
<div class="page-inner">
|
||||
<!-- 隐藏的导航容器,仅用于脚本生成目录,页面不展示 -->
|
||||
@@ -1145,6 +1361,12 @@
|
||||
<div id="navLinks"></div>
|
||||
</nav>
|
||||
<header class="header">
|
||||
<img
|
||||
class="header-poster"
|
||||
src="{{ .BannerPosterURL }}"
|
||||
alt=""
|
||||
aria-hidden="true"
|
||||
/>
|
||||
<div class="header-inner">
|
||||
<div class="header-main">
|
||||
<div class="header-hero-kicker">
|
||||
@@ -1167,19 +1389,21 @@
|
||||
<div class="header-tags" id="headerTags"></div>
|
||||
</div>
|
||||
<aside class="header-score" aria-label="综合评分">
|
||||
<div class="header-score-inner">
|
||||
<div class="header-score-inner header-hero-badges">
|
||||
<div class="score" id="overallScore">--</div>
|
||||
<div class="label">
|
||||
<span id="riskLevelPill" class="pill low"
|
||||
>风险:-</span
|
||||
>
|
||||
</div>
|
||||
<span id="riskLevelPill" class="pill low">风险:-</span>
|
||||
</div>
|
||||
</aside>
|
||||
</div>
|
||||
</header>
|
||||
<main id="reportSections" class="report-sections"></main>
|
||||
<footer class="report-brand-footer">
|
||||
<img
|
||||
class="footer-poster"
|
||||
src="{{ .FooterPosterURL }}"
|
||||
alt=""
|
||||
aria-hidden="true"
|
||||
/>
|
||||
<p>更新更全信息欢迎使用海宇数据</p>
|
||||
</footer>
|
||||
</div>
|
||||
@@ -3790,6 +4014,7 @@
|
||||
card.appendChild(body);
|
||||
container.appendChild(card);
|
||||
});
|
||||
document.body.dataset.qyglReportReady = "1";
|
||||
}
|
||||
|
||||
function loadReport() {
|
||||
@@ -3810,6 +4035,8 @@
|
||||
}
|
||||
loadReport();
|
||||
|
||||
document.body.dataset.qyglReportReady = document.body.dataset.qyglReportReady || "1";
|
||||
|
||||
// 绑定「保存为 PDF」:先轮询预生成状态,再 GET /pdf(服务端优先读缓存,必要时现场生成)
|
||||
var saveBtn = document.getElementById("btnSavePdf");
|
||||
var loadingOverlay = document.getElementById("pdfLoadingOverlay");
|
||||
|
||||
BIN
resources/qygl-media/banner.jpg
Normal file
BIN
resources/qygl-media/banner.jpg
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 49 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 275 KiB After Width: | Height: | Size: 295 KiB |
Reference in New Issue
Block a user