/* ===== 技术资料页 ===== */
body.page-tech-docs {
    background: #ffffff;
}

.tech-docs-page {
    position: relative;
    color: var(--text-primary);
}

/* ----- 背景层（绝对定位垫底） ----- */
.tech-docs-page__bg {
    position: absolute;
    top: 0;
    left: 50%;
    z-index: 0;
    width: 100%;
    max-width: var(--hero-max-width);
    transform: translateX(-50%);
    pointer-events: none;
}

.tech-docs-page__bg-image {
    display: block;
    width: 100%;
    height: auto;
}

/* ----- hero（略低于背景图高度，内容垂直居中） ----- */
.tech-docs-hero {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    height: calc(500 * var(--rpx));
}

.tech-docs-hero__copy {
    width: 100%;
}

.tech-docs-hero__title {
    margin: 0;
    font-size: calc(58 * var(--fpx));
    font-weight: 600;
    line-height: calc(68 / 58);
}

.tech-docs-hero__lead {
    margin: calc(44 * var(--rpx)) 0 0;
    max-width: calc(680 * var(--rpx));
    font-size: calc(24 * var(--fpx));
    font-weight: 600;
    line-height: calc(36 / 24);
}

/* ----- 主体 ----- */
.tech-docs-body {
    position: relative;
    z-index: 1;
    padding-bottom: calc(100 * var(--rpx));
}

.tech-docs-body .wrapper {
    container-type: inline-size;
    --docs-rpx: calc(100cqw / 1600);
}

.tech-docs-body .docs-toolbar {
    margin-bottom: calc(42 * var(--rpx));
}

.tech-docs-body .docs-empty {
    margin: 0;
    padding: calc(48 * var(--rpx)) 0 calc(64 * var(--rpx));
    font-size: calc(16 * var(--fpx));
    line-height: calc(24 / 16);
    text-align: center;
    color: rgba(0, 0, 0, 0.45);
}

.tech-docs-body .docs-rows {
    display: flex;
    flex-direction: column;
}

.tech-docs-body .docs-item {
    width: 100%;
    background: #ffffff;
    transition: background 0.2s ease;
}

.tech-docs-body .docs-item:hover,
.tech-docs-body .docs-item:focus-within {
    background: #fafcfd;
}

.tech-docs-body .docs-item-inner {
    position: relative;
    display: grid;
    grid-template-columns:
        calc(140 * var(--docs-rpx))
        minmax(0, 1fr)
        calc(480 * var(--docs-rpx));
    column-gap: calc(80 * var(--docs-rpx));
    align-items: start;
    min-height: calc(240 * var(--docs-rpx));
    padding:
        calc(42 * var(--docs-rpx))
        0
        calc(40 * var(--docs-rpx));
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.tech-docs-body .docs-item:not([hidden]):not(:has(~ .docs-item:not([hidden]))) .docs-item-inner {
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.tech-docs-body .docs-more[hidden] {
    display: none;
}

.tech-docs-body .docs-date {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: calc(8 * var(--docs-rpx));
    padding-top: calc(8 * var(--docs-rpx));
}

.tech-docs-body .docs-day {
    font-size: calc(48 * var(--fpx-50));
    font-weight: 400;
    line-height: 1;
    color: #e42f3b;
}

.tech-docs-body .docs-month {
    font-size: calc(14 * var(--fpx));
    line-height: calc(21 / 14);
    color: #e42f3b;
}

.tech-docs-body .docs-title {
    margin: 0;
    padding-top: calc(8 * var(--docs-rpx));
    font-size: calc(32 * var(--fpx-50));
    font-weight: 600;
    line-height: calc(48 / 32);
    transition: color 0.2s ease;
}

.tech-docs-body .docs-item:hover .docs-title,
.tech-docs-body .docs-item:focus-within .docs-title {
    color: var(--brand-red);
}

.tech-docs-body .docs-card {
    position: relative;
    overflow: hidden;
    container-type: inline-size;
    width: calc(480 * var(--docs-rpx));
    height: calc(240 * var(--docs-rpx));
    border-radius: calc(10 * var(--docs-rpx));
    background: #f4f3eb;
    --card-rpx: calc(100cqw / 480);
}

.tech-docs-body .docs-card-bg {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    pointer-events: none;
}

.tech-docs-body .docs-card-body {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    height: 100%;
    padding:
        calc(23 * var(--card-rpx))
        calc(30 * var(--card-rpx))
        calc(24 * var(--card-rpx));
    box-sizing: border-box;
}

.tech-docs-body .docs-card-title {
    margin: 0;
    max-width: calc(221 * var(--card-rpx));
    font-size: calc(20 * var(--fpx));
    font-weight: 600;
    line-height: calc(30 / 20);
}

.tech-docs-body .docs-card-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: calc(16 * var(--card-rpx));
    margin-top: auto;
    min-height: calc(60 * var(--card-rpx));
}

.tech-docs-body .docs-card-size {
    font-size: calc(14 * var(--fpx));
    line-height: calc(21 / 14);
    color: var(--text-primary);
}

.tech-docs-body .docs-card-download {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    width: calc(60 * var(--card-rpx));
    height: calc(60 * var(--card-rpx));
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: 0 calc(4 * var(--card-rpx)) calc(12 * var(--card-rpx)) rgba(0, 0, 0, 0.1);
    color: inherit;
    text-decoration: none;
    line-height: 0;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.tech-docs-body .docs-card-download:hover {
    transform: scale(1.04);
}

.tech-docs-body .docs-card-download img {
    display: block;
    flex: 0 0 auto;
    width: calc(20 * var(--card-rpx));
    height: calc(20 * var(--card-rpx));
    max-width: none;
    object-fit: contain;
}

.tech-docs-body .docs-more {
    display: flex;
    justify-content: center;
    margin-top: calc(48 * var(--docs-rpx));
}

.tech-docs-body .docs-more__reveal {
    width: calc(200 * var(--docs-rpx));
}

.tech-docs-body .docs-more .btn-ctn {
    margin: 0;
}

.tech-docs-body .docs-more-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    box-sizing: border-box;
    width: calc(200 * var(--docs-rpx));
    height: calc(60 * var(--docs-rpx));
    padding: 0 calc(30 * var(--docs-rpx));
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: calc(300 * var(--docs-rpx));
    background: var(--brand-red);
    color: #f8f8f8;
    font-size: calc(16 * var(--fpx));
    font-weight: 400;
    line-height: calc(24 / 16);
    white-space: nowrap;
    cursor: pointer;
    transition: filter 0.2s;
}

.tech-docs-body .docs-more-btn:hover {
    filter: brightness(1.06);
}

.tech-docs-body .docs-more-btn .text {
    flex: 0 0 auto;
}

.tech-docs-body .docs-more-icon {
    position: absolute;
    right: calc(10 * var(--docs-rpx));
    top: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    width: calc(40 * var(--docs-rpx));
    height: calc(40 * var(--docs-rpx));
    border-radius: 50%;
    background: #ffffff;
    margin-top: calc(-20 * var(--docs-rpx));
}

.tech-docs-body .docs-more-icon img {
    display: block;
    width: calc(11.0625 * var(--docs-rpx));
    height: calc(11.0303 * var(--docs-rpx));
    object-fit: contain;
}

/* ===== @828 mobile ===== */
@media (max-width: 828px) {
    .tech-docs-page {
        display: flex;
        flex-direction: column;
    }

    .tech-docs-page__bg {
        position: relative;
        top: auto;
        left: auto;
        order: -1;
        z-index: 0;
        width: 100%;
        max-width: none;
        height: calc(500 * var(--rpx));
        overflow: hidden;
        transform: none;
        flex-shrink: 0;
    }

    .tech-docs-page__bg-image {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
    }

    .tech-docs-hero {
        position: relative;
        z-index: 1;
        display: block;
        height: auto;
        min-height: 0;
        padding: 0 0 calc(48 * var(--rpx));
    }

    .tech-docs-hero__copy {
        position: relative;
        z-index: 1;
        margin-top: calc(-200 * var(--rpx));
    }

    .tech-docs-hero__title {
        font-size: calc(36 * var(--fpx));
    }

    .tech-docs-hero__lead {
        max-width: none;
        margin-top: calc(24 * var(--rpx));
        font-size: calc(18 * var(--fpx));
    }

    .tech-docs-body .docs-item-inner {
        grid-template-columns: 1fr;
        grid-template-areas:
            "date"
            "card";
        column-gap: 0;
        row-gap: calc(12 * var(--rpx));
        min-height: 0;
        padding: calc(28 * var(--rpx)) 0;
        align-items: stretch;
    }

    .tech-docs-body .docs-title {
        display: none;
    }

    .tech-docs-body .docs-date {
        grid-area: date;
        justify-self: end;
        flex-direction: row;
        align-items: baseline;
        gap: calc(6 * var(--rpx));
        padding-top: 0;
    }

    .tech-docs-body .docs-day {
        font-size: calc(48 * var(--fpx-50));
        line-height: 1;
    }

    .tech-docs-body .docs-month {
        font-size: calc(14 * var(--fpx));
    }

    .tech-docs-body .docs-card {
        grid-area: card;
        width: 100%;
        height: auto;
        aspect-ratio: 480 / 240;
        margin-top: 0;
        --card-rpx: calc(100cqw / 480);
    }

    .tech-docs-body .docs-card-title {
        max-width: none;
    }

    .tech-docs-body .docs-more-btn {
        width: auto;
        min-width: calc(200 * var(--rpx));
    }
}

