body, html {
    min-width: 1000px;
    overflow: auto
}

#ng-sec-platforms {
    padding-top: var(--nav-height);
    margin-top: calc(var(--nav-height) * -1)
}

#ng-sec-platforms h1 {
    margin: 30px 0;
    font-weight: 100;
    width: 500px;
    margin-left: 50%;
    transform: translateX(-220px)
}

#ng-sec-platforms h1 strong {
    font-weight: 700
}

#ng-sec-platforms h1 .caret {
    animation: blink-caret 1s step-end infinite
}

@keyframes blink-caret {
    from, to {
        color: transparent
    }
    50% {
        color: inherit
    }
}

#ng-sec-platforms .darkmode-switch {
    padding: 0;
    margin-bottom: 30px
}

#ng-sec-platforms__cards {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin: auto;
    width: 95%;
    max-width: 1800px;
    border-bottom: 1px solid rgba(127, 127, 127, .2);
    padding-bottom: 30px
}

#ng-sec-platforms .card {
    display: block;
    width: 400px;
    margin-top: 20px;
    position: relative;
    opacity: .85;
    transform: scale(.95);
    transform-origin: bottom;
    transition-property: opacity, transform, box-shadow;
    border: 1px solid rgba(127, 127, 127, .2);
    box-shadow: none !important;
    order: 3
}

body.dark-theme #ng-sec-platforms .card {
    opacity: 1
}

#ng-sec-platforms .card:nth-of-type(3) {
    order: 1
}

@media (max-width: 1800px) {
    #ng-sec-platforms__cards {
        max-width: 1200px
    }

    #ng-sec-platforms .card:nth-of-type(3) {
        order: 3
    }

    #ng-sec-platforms .card {
        opacity: 1
    }

    #ng-sec-platforms .break {
        flex-basis: 100%;
        order: 2
    }
}

#ng-sec-platforms > .card {
    margin: auto
}

#ng-sec-platforms > .card img {
    height: 2em
}

#ng-sec-platforms .card.recommended {
    opacity: 1;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 7%), 0 4px 4px -2px rgba(0, 0, 0, .1) !important;
    margin: 0 20px 20px;
    transform: scale(1);
    order: 2
}

.card.recommended::after, .download-card.recommended::after, .small-text-banner {
    display: inline-block;
    background: var(--primary-color);
    box-shadow: 0 1px 5px var(--primary-color), inset 0 1px rgba(255, 255, 255, .2);
    border-radius: 999px;
    padding: 5px 20px;
    font-size: 14px;
    color: #fff !important;
    font-family: themify, var(--font-family), sans-serif;
    border: 1px solid rgba(0, 0, 0, .2);
    transition: transform .2s;
    white-space: nowrap
}

.small-text-banner:hover {
    transform: scaleX(1.05)
}

.card.recommended::after, .download-card.recommended::after {
    position: absolute;
    bottom: -20px;
    left: 50%;
    content: '\e623  推荐';
    transform: translateX(-50%)
}

#ng-sec-platforms .card:hover, #ng-sec-platforms .card.recommended:hover {
    opacity: 1;
    transform: translateY(-5px) scale(1);
    box-shadow: 0 0 20px rgba(0, 0, 0, 7%) !important
}

#ng-sec-platforms .card.recommended:hover {
    box-shadow: 0 5px 20px rgba(0, 0, 0, .15), 0 4px 4px -2px rgba(0, 0, 0, .1) !important
}

#ng-sec-platforms .card > div {
    display: flex;
    background-image: linear-gradient(120deg, var(--card-bg) -10%, white 110%);
    color: #000;
    height: 210px;
    border-radius: var(--border-radius) var(--border-radius) 0 0
}

#ng-sec-platforms .card figure {
    overflow: hidden;
    width: 50%;
    position: relative;
    margin: 0;
    border-radius: var(--border-radius) 0 0 0;
    display: flex
}

#ng-sec-platforms .card figure::after {
    content: '';
    z-index: 10;
    width: 200%;
    height: 100%;
    top: -90%;
    left: -20px;
    opacity: .1;
    transform: rotate(45deg);
    background: linear-gradient(to top, rgba(255, 255, 255, 0), #fff 15%, rgba(255, 255, 255, .5));
    transition-property: transform, top, opacity;
    transition-duration: .3s;
    position: absolute
}

#ng-sec-platforms .card:hover figure::after {
    transform: rotate(25deg);
    top: -40%;
    opacity: .15
}

#ng-sec-platforms .card figure img {
    margin: 0;
    transition: transform .3s;
    width: 100%
}

#ng-sec-platforms .card:hover figure img {
    transform: translateY(-3px) scale(1.05) rotateX(15deg)
}

#ng-sec-platforms .card figure + div {
    padding-left: 20px
}

#ng-sec-platforms .card h3 {
    color: #000;
    left: 50%;
    top: .5em;
    position: absolute;
    transform: translateY(-50%);
    font-size: 24px
}

#ng-sec-platforms .card h3 ~ div {
    padding-top: 80px
}

#ng-sec-platforms .card ul {
    margin-bottom: 6px;
    opacity: .6
}

#ng-sec-platforms .card ul li {
    font-size: 12px;
    padding: 0 20px;
    width: 220px
}

#ng-sec-platforms .card ul li::before {
    top: 1px;
    background: 0 0;
    font-weight: 700;
    filter: none;
    color: inherit;
    font-family: themify
}

#ng-sec-platforms .card ul.positives li::before {
    content: '\e64c'
}

#ng-sec-platforms .card ul.negatives li::before {
    content: '\e646'
}

#ng-sec-platforms .card p {
    margin: 20px;
    font-size: 14px
}

:root {
    --downloads-nav-height: 60px
}

#downloads-nav {
    display: flex;
    flex-direction: row;
    box-shadow: 0 6px 8px rgba(0, 0, 0, .1);
    background-image: linear-gradient(to bottom, var(--body-color), var(--white-color));
    background-size: cover;
    position: sticky;
    height: var(--downloads-nav-height);
    top: 0;
    right: 0;
    left: 0;
    z-index: 99;
    justify-content: center;
    align-items: center;
    font-size: 1.2em;
    opacity: .95
}

#downloads-nav div {
    position: absolute;
    height: 4px;
    background: var(--text-color-dark);
    left: 50%;
    right: 50%;
    bottom: 0;
    border-radius: 4px 4px 0 0;
    box-shadow: 0 3px 8px #7f7f7f;
    transition-property: left, right;
    transition-duration: .6s
}

#downloads-nav a {
    margin: 0 24px;
    cursor: pointer
}

#back-to-top {
    display: block;
    width: 60px;
    height: 60px;
    line-height: 60px;
    position: sticky;
    top: calc(100vh - 100px);
    left: calc(100vw - 100px);
    border-radius: 100%;
    background: var(--text-color-dark);
    box-shadow: 0 0 10px var(--text-color-dark);
    font-size: 20px;
    text-align: center;
    z-index: 99;
    cursor: pointer;
    color: var(--white-color);
    transition: transform ease-in .2s
}

#back-to-top:hover {
    transform: translateY(-10px);
    opacity: 1 !important
}

#downloads .centered-content {
    width: 90%;
    max-width: 800px;
    margin: auto
}

#downloads section {
    box-sizing: content-box;
    padding-top: calc(var(--downloads-nav-height) + 40px)
}

#ng-sec-platforms, #downloads section:not(:last-child) {
    padding-bottom: max(60vh, 200px);
    min-height: 100vh
}

#downloads section:last-child {
    padding-bottom: 200px
}

section h2, section h3, section h4, section h5, section h6, section p {
    margin: 1.3em 0
}

#ng-sec-platforms h2, #downloads h2 {
    text-shadow: 0 2px 6px rgba(127, 127, 127, .5);
    text-align: center;
    font-weight: 400
}

.header-link {
    margin-right: -1em
}

.header-link i {
    text-shadow: .5px .5px .25px, -.5px -.5px .25px, .5px -.5px .25px, -.5px .5px .25px;
    color: var(--primary-color);
    margin-left: .4em;
    font-size: .5em;
    vertical-align: top
}

section img {
    max-width: 100%
}

.btn svg {
    height: 15px;
    width: 15px;
    margin-right: .25em;
    margin-top: -4px;
    vertical-align: middle
}

.chevron-link {
    font-size: 26px
}

#downloads h1 {
    text-shadow: 0 -1px 1px #7f7f7f, 0 2px 10px rgba(127, 127, 127, .7)
}

#downloads h1 img {
    margin-left: -.4em;
    height: 2em;
    display: inline;
    vertical-align: middle
}

.buttons-paragraph {
    margin: 2em 0;
    text-align: center
}

.downloads-tabs {
    background: var(--text-color-dark);
    box-shadow: 0 0 5px var(--text-color-dark);
    padding: 8px;
    max-width: 600px;
    margin: auto;
    border-radius: 99px;
    display: flex;
    flex-direction: row;
    height: 40px;
    font-size: 18px;
    align-items: center
}

.downloads-tabs a {
    flex: 1;
    text-align: center;
    color: var(--white-color)
}

.downloads-tabs a:not(:first-child) {
    border-left: 1px solid rgba(127, 127, 127, .8)
}

.downloads-tabs a.selected {
    border-color: transparent;
    box-shadow: 0 0 10px black;
    background: var(--white-color);
    color: var(--text-color-dark);
    text-shadow: 0 0 2px;
    border-radius: 99px
}

.downloads-tabs a.selected + a {
    border-color: transparent
}

.downloads-tabs + div {
    transition: opacity .2s
}

.download-cards {
    display: flex;
    justify-content: center;
    margin: 40px 0
}

.download-cards--wide > :first-child {
    border-radius: var(--border-radius) var(--border-radius) 0 0
}

.download-cards--wide > :last-child {
    border-radius: 0 0 var(--border-radius) var(--border-radius)
}

.download-card, .download-card--wide {
    --base-height: 50px;
    display: flex;
    flex-direction: column;
    width: 300px;
    background-color: var(--white-color);
    border-radius: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 7%);
    transition-duration: .2s;
    margin: 10px;
    text-align: center;
    position: relative
}

.download-card--wide {
    flex-direction: row;
    width: 100%;
    margin: 0;
    border-radius: 0
}

.download-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 14px 25px rgba(0, 0, 0, .1)
}

.download-card__sum {
    display: none;
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    bottom: var(--base-height);
    font-size: 21px;
    background: var(--white-color);
    padding: 45px;
    padding-bottom: 0;
    word-wrap: break-word;
    text-align: justify;
    font-family: monospace;
    z-index: 2;
    font-variant-ligatures: no-common-ligatures
}

.download-card.show-sum .download-card__sum, .download-card--wide.show-sum .download-card__sum {
    display: block
}

.download-card > a::after, .download-card--wide > a::after {
    display: block;
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1
}

.download-card--wide > a {
    flex: 1;
    padding: 0 20px
}

.download-card img {
    height: 140px;
    margin: 20px
}

.download-card p, .download-card h4 {
    margin: 0;
    margin-bottom: 10px
}

.download-card p, .download-card h4 {
    padding: 0 40px
}

.download-card p:empty {
    height: 5px
}

.download-card--wide h4 {
    margin: 0;
    font-weight: 400;
    text-align: left;
    line-height: var(--base-height);
    font-size: 18px
}

.download-card--wide .download-card__sum {
    padding: 0;
    bottom: 0;
    font-size: 18px;
    line-height: 20px;
    padding: 5px 0 5px 20px
}

.download-card--wide .download-card__sum h4 {
    font-size: 12px;
    font-weight: 700;
    line-height: inherit
}

.download-card__downloads {
    display: flex;
    height: var(--base-height);
    line-height: var(--base-height);
    margin-top: auto
}

.download-card__downloads a {
    flex: 1;
    position: relative;
    z-index: 2;
    border: solid rgba(127, 127, 127, .2);
    border-width: 1px 1px 0 0
}

.download-card__downloads a:last-child {
    border-right: 0
}

.download-card__downloads a::after {
    display: block;
    position: absolute;
    content: attr(data-size);
    writing-mode: vertical-lr;
    top: 0;
    bottom: 0;
    right: 0;
    text-align: center;
    color: var(--text-color-dark);
    font-size: 12px;
    opacity: .4;
    line-height: 30px
}

.download-card--wide .download-card__downloads {
    margin-top: 0;
    margin-left: auto
}

.download-card--wide .download-card__downloads a {
    border-top: 0;
    width: 80px
}

.download-card__downloads .download-card__download-button {
    z-index: 0
}

.download-card.show-sum .download-card__sum-button, .download-card--wide.show-sum .download-card__sum-button {
    color: var(--text-color-dark)
}

.download-card--wide.show-sum .download-card__downloads a:not(:last-child) {
    z-index: 0
}

#ng-sec-bare-metal .download-card {
    margin: 0
}

#ng-sec-bare-metal .download-card:not(.recommended) {
    transform: scale(.9);
    transform-origin: bottom
}

#ng-sec-bare-metal .download-card:not(.recommended):hover {
    transform: scale(.91) translateY(-5px)
}

.download-card.recommended {
    box-shadow: 0 5px 30px -15px var(--primary-color)
}

.download-card.recommended::after {
    bottom: -50px
}

#ng-sec-virtual-machines__doc-links {
    margin-top: -20px;
    display: flex;
    justify-content: space-evenly
}

#nethunter-demo {
    height: 500px;
    width: 240px;
    flex-shrink: 0
}

#nethunter-demo ~ div {
    width: 520px;
    margin: auto
}

#winkex-demo {
    width: 500px;
    height: 300px;
    margin: auto
}
