/* 体能报告打印样式 */
.tn-print-report {
    width: 1080px;
    height: 1920px;
    background: #ffffff;
    padding: 32px;
    overflow: hidden;
    position: relative;
    box-sizing: border-box;
    font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}
.tn-print-report::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 0;
    border-top: 70px solid #ff6600;
    border-right: 70px solid transparent;
    z-index: 1;
    box-sizing: border-box;
}
.tn-print-report .triangle-layer-2 {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 0;
    border-top: 60px solid #b94e20;
    border-right: 60px solid transparent;
    z-index: 2;
}
.tn-print-report .triangle-layer-3 {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 0;
    border-top: 40px solid #933b14;
    border-right: 40px solid transparent;
    z-index: 3;
}
.tn-print-report::after {
    content: "";
    position: absolute;
    bottom: -24px;
    right: 0;
    width: 0;
    height: 0;
    border-bottom: 40px solid #933b14;
    border-left: 40px solid transparent;
    z-index: 1;
    box-sizing: border-box;
}
.tn-print-report .hc-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    border-bottom: 6px solid #ebebea;
    padding-bottom: 2rem;
    margin-bottom: 1rem;
    gap: 2.5rem;
}
.tn-print-report .hc-title h1 {
    margin: 0;
    font-size: 2rem;
    color: #000000;
    letter-spacing: 0.5px;
}
.tn-print-report .hc-meta {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    font-size: 1.1rem;
    color: #88959e;
    min-width: 28rem;
}
.tn-print-report .hc-meta-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(8rem, 1fr));
    column-gap: 1.75rem;
}
.tn-print-report .hc-meta span {
    color: #ff6600;
    font-weight: 600;
    margin-left: 4px;
}
.tn-print-report .data-nameid {
    display: inline-block;
    word-break: break-all;
    overflow-wrap: break-word;
    max-width: 12ch;
    text-align: left;
    vertical-align: top;
}
.tn-print-report .summary-row {
    display: grid;
    grid-template-columns: 390px 1px 1fr;
    gap: 0;
    margin-bottom: 1rem;
    overflow: hidden;
}
.tn-print-report .card {
    padding: 18px 22px;
}
.tn-print-report .assessment-card-tn {
    display: flex;
    align-items: center;
    gap: 18px;
}
.tn-print-report .assessment-card-content-tn {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    margin-left: -22px;
    text-align: center;
    justify-content: center;
}
.tn-print-report .assessment-card-tn .score {
    font-size: 9rem;
    color: #ff6600;
    margin: 0;
    font-weight: 700;
    line-height: 1;
    margin-top: -1rem;
}
.tn-print-report .assessment-card-tn h3 {
    color: #3c3c3c;
    letter-spacing: 1px;
    font-size: 1.5rem;
    margin: 0 0 4px 0;
    text-align: right;
}
.tn-print-report .assessment-card-tn .tagline {
    font-size: 1.3rem;
    color: #9ba7b0;
    margin-top: 0;
    align-self: center;
}
.tn-print-report .summary-divider {
    width: 1px;
    background-color: #ebebea;
}
.tn-print-report .control-card {
    border-left: 6px solid #ebebea;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.tn-print-report .control-card h3 {
    margin: 0 0 0.5rem;
    font-size: 1.5rem;
    color: #3c3c3c;
}
.tn-print-report .control-text {
    margin: 0;
    font-size: 1rem;
    color: #6b747c;
    text-align: justify;
    text-justify: inter-word;
    hyphens: auto;
    word-break: break-word;
}
.tn-print-report .tests-section {
    border: 6px solid #ebebea;
    margin-top: 12px;
}
.tn-print-report .tests-header {
    text-align: center;
    padding: 10px 0;
    font-size: 1.1rem;
    color: #4a4a4a;
    background: #ebebea;
    letter-spacing: 1px;
    font-weight: 700;
}
.tn-print-report .tests-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0;
    padding: 14px 12px 12px;
}
.tn-print-report .test-item {
    text-align: center;
    color: #3c3c3c;
}
.tn-print-report .test-name {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 4px;
    white-space: nowrap;
}
.tn-print-report .test-name-main {
    font-size: 1rem;
}
.tn-print-report .test-name-sub {
    font-size: 0.8rem;
}
.tn-print-report .test-sub {
    font-size: 0.9rem;
    color: #8a8f95;
    margin-bottom: 4px;
}
.tn-print-report .test-value {
    font-size: 2rem;
    font-weight: 700;
    color: #ff6600;
    line-height: 1.1;
}
.tn-print-report .test-baseline {
    margin-top: 4px;
    font-size: 0.85rem;
    color: #8a8f95;
}
.tn-print-report .fitness-elements-section {
    border: 6px solid #ebebea;
    margin-top: 12px;
}
.tn-print-report .fitness-elements-header {
    text-align: center;
    padding: 10px 0;
    font-size: 1.1rem;
    color: #4a4a4a;
    background: #ebebea;
    letter-spacing: 1px;
    font-weight: 700;
}
.tn-print-report .fitness-elements-content {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 0;
    padding: 6px 0;
}
.tn-print-report .fitness-elements-list {
    padding: 0 20px;
    border-right: 3px solid #ebebea;
}
.tn-print-report .fitness-element-item {
    display: grid;
    grid-template-columns: 120px 1fr 1fr;
    gap: 12px;
    align-items: center;
    margin-bottom: 40px;
}
.tn-print-report .fitness-element-item:last-child {
    margin-bottom: 0;
}
.tn-print-report .fitness-element-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: #3c3c3c;
}
.tn-print-report .fitness-element-bars {
    display: flex;
    gap: 4px;
}
.tn-print-report .fitness-element-bar {
    flex: 1;
    height: 12px;
    background: #e2e6ed;
}
.tn-print-report .fitness-element-bar.active {
    background: #ff6600;
}
.tn-print-report .fitness-element-definition {
    font-size: 0.85rem;
    color: #6b747c;
    line-height: 1.4;
    text-align: justify;
    text-justify: inter-word;
    hyphens: auto;
    word-break: break-word;
    overflow-wrap: break-word;
}
.tn-print-report .fitness-recommendations {
    padding: 0 20px;
    max-width: 400px;
    text-align: left;
    border-left: 3px solid #ebebea;
}
.tn-print-report .fitness-recommendations-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #3c3c3c;
    margin-bottom: 12px;
    text-align: left;
}
.tn-print-report .fitness-recommendations-content {
    font-size: 0.9rem;
    color: #6b747c;
    line-height: 1.6;
    text-align: justify;
    text-justify: inter-word;
    hyphens: auto;
    word-break: break-word;
    overflow-wrap: break-word;
}
.tn-print-report .data-analysis-section {
    border: 3px solid #ebebea;
    margin-top: 12px;
}
.tn-print-report .data-analysis-header {
    text-align: center;
    padding: 10px 0;
    font-size: 1.1rem;
    color: #4a4a4a;
    background: #ebebea;
    letter-spacing: 1px;
    font-weight: 700;
}
.tn-print-report .data-analysis-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(3, 1fr);
    gap: 0;
}
.tn-print-report .data-analysis-item-split {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 0;
    border: 3px solid #ebebea;
    padding: 6px 0;
    grid-column: 1 / -1;
}
.tn-print-report .data-analysis-item-left {
    padding: 6px 16px;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 24px;
    border-right: 3px solid #ebebea;
}
.tn-print-report .data-analysis-item-left-part1 {
    display: flex;
    flex-direction: column;
}
.tn-print-report .data-analysis-item-left-part1-title-row {
    display: flex;
    flex-direction: row;
    align-items: baseline;
    gap: 0;
    margin-bottom: 8px;
}
.tn-print-report .data-analysis-item-left-part1-subtitle {
    font-size: 0.85rem;
    color: #8a8f95;
    margin-bottom: 0;
    margin-left: 0;
}
.tn-print-report .data-analysis-item-left-part2 {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    padding-left: 8px;
}
.tn-print-report .data-analysis-item-left-part2-header {
    display: flex;
    align-items: baseline;
    gap: 0;
    width: 100%;
    margin-bottom: 12px;
}
.tn-print-report .data-analysis-item-left-part2-title {
    font-size: 0.85rem;
    color: #8a8f95;
    margin-bottom: 0;
    margin-left: -1.5rem;
}
.tn-print-report .data-analysis-item-right {
    padding: 6px 16px;
    display: flex;
    flex-direction: column;
    border-left: 3px solid #ebebea;
}
.tn-print-report .data-analysis-right-content {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 16px;
    width: 100%;
}
.tn-print-report .data-analysis-item-title {
    font-size: 0.85rem;
    color: #8a8f95;
    margin-bottom: 8px;
}
.tn-print-report .data-analysis-item-title-main {
    font-size: 1rem;
    color: #8a8f95;
}
.tn-print-report .data-analysis-item-title-sub {
    font-size: 0.8rem;
    color: #8a8f95;
    margin-left: 4px;
}
.tn-print-report .data-analysis-content {
    display: flex;
    gap: 12px;
    flex: 1;
    margin-left: 0;
    padding-left: 0;
}
.tn-print-report .data-analysis-chart {
    flex: 1;
    min-height: 120px;
    height: 120px;
    background: #ffffff;
    position: relative;
    overflow: visible;
}
.tn-print-report .data-analysis-chart-large {
    min-width: 450px;
    min-height: 170px;
    height: 175px;
}
.tn-print-report .data-analysis-chart-large-1 {
    min-width: 550px;
    min-height: 170px;
    height: 175px;
}
.tn-print-report .chart-canvas {
    width: 100%;
    height: 100%;
    display: block;
}
.tn-print-report .data-analysis-data {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 120px;
}
.tn-print-report .data-analysis-field {
    font-size: 0.85rem;
    color: #6b747c;
    display: flex;
    align-items: center;
}
.tn-print-report .data-analysis-field-label {
    color: #8a8f95;
    margin-right: 4px;
    min-width: 150px;
}
.tn-print-report .data-analysis-field-value {
    color: #ff6600;
    font-size: 1rem;
    font-weight: 600;
}
.tn-print-report .data-analysis-trajectory-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    margin-top: 2rem;
    margin-left: -3.6rem;
}
.tn-print-report .data-analysis-stable-time {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    text-align: center;
}
.tn-print-report .data-analysis-stable-time-label {
    color: #8a8f95;
    font-size: 0.9rem;
}
.tn-print-report .data-analysis-stable-time-value {
    color: #ff6600;
    font-size: 1rem;
    font-weight: 600;
}
.tn-print-report .data-analysis-pressure-title {
    font-size: 0.85rem;
    color: #8a8f95;
    margin-bottom: 0.5rem;
}
.tn-print-report .data-analysis-pressure-values {
    display: flex;
    flex-direction: row;
    gap: 16px;
    align-items: center;
}
.tn-print-report .data-analysis-pressure-field {
    display: flex;
    align-items: center;
    gap: 4px;
}
.tn-print-report .data-analysis-pressure-label {
    font-size: 0.85rem;
    color: #8a8f95;
    white-space: nowrap;
}
.tn-print-report .data-analysis-pressure-value {
    font-size: 1rem;
    color: #ff6600;
    font-weight: 600;
}
.tn-print-report .data-analysis-running-peak-label {
    font-size: 0.95rem;
    color: #8a8f95;
    margin-bottom: 0;
    white-space: nowrap;
}
.tn-print-report .data-analysis-running-peak-value {
    font-size: 1rem;
    color: #ff6600;
    font-weight: 600;
}

/* 体能报告打印样式 - 只在打印时生效 */
@media print {
    @page {
        size: A4 portrait;
        margin: 0;
    }
    * {
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
    html,
    body {
        width: 210mm;
        height: auto;
        background: #ffffff;
        margin: 0;
        padding: 0;
    }
    body {
        margin: 0;
        padding: 0;
        display: block;
    }
    /* 体能报告打印容器样式 */
    .tn-print-report {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        width: auto !important;
        height: auto !important;
        padding: 32px !important;
        margin: 0 !important;
        box-shadow: none !important;
        overflow: visible !important;
        transform-origin: top left;
        transform: none;
        zoom: 0.58;
        page-break-inside: avoid;
        page-break-after: avoid;
        break-inside: avoid;
        position: relative !important;
    }
    .tn-print-report .hc-header {
        page-break-inside: avoid;
        break-inside: avoid;
    }
}

