/* Base */

html,
body {
    margin: 0;
    padding: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", "Source Han Sans SC", "Helvetica Neue", Arial, sans-serif;
    color: #555;
    background: #eeeeef;
    -webkit-text-size-adjust: 100%;
}

.sr-3d body {
    background: rgb(215, 215, 215);
    background: radial-gradient(rgb(240, 240, 240), rgb(190, 190, 190));
}

/* Keep the stacked layout from flashing on desktop before impress.js has positioned the steps */
.sr-3d body:not(.impress-enabled) #impress {
    display: none;
}


/* Steps: stacked cards by default (phones, no JS), 700×700 cards in 3D once impress.js runs */

#impress {
    padding: 28px 14px 8px;
}

.step {
    box-sizing: border-box;
    max-width: 680px;
    margin: 0 auto 16px;
    padding: 26px 22px 22px;
    font-size: 16px;
    line-height: 1.75;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, .08);
}

.step.plain {
    background: transparent;
    box-shadow: none;
    text-align: center;
}

.impress-enabled #impress {
    padding: 0;
}

.impress-enabled .step {
    width: 700px;
    height: 700px;
    max-width: none;
    margin: 0;
    padding: 58px 64px;
    font-size: 22px;
    line-height: 1.7;
    border-radius: 10px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, .1);
    opacity: .1;
    transition: opacity 1s;
}

.impress-enabled .step.active {
    opacity: 1;
}

/* Only the current step shows its text; the others stay faint panels, so their text never ghosts through */
.impress-enabled .step > * {
    transition: opacity .6s;
}

.impress-enabled .step:not(.active) > * {
    opacity: 0;
}

.impress-enabled .step.plain {
    box-shadow: none;
}

/* Overview steps are only shown while they are the current step */
.impress-enabled .overview {
    display: none;
    pointer-events: none;
}

.impress-enabled .overview.active {
    display: block;
    pointer-events: auto;
}


/* Home */

.hero .logo {
    display: block;
    width: 260px;
    height: auto;
    margin: 0 auto 8px;
}

.hero h1 {
    margin: 0;
    font-size: 46px;
    line-height: 1.3;
    letter-spacing: .08em;
    color: #555;
}

.hero .slogan {
    margin: 4px 0 0;
    font-size: 28px;
    font-weight: 700;
    letter-spacing: .12em;
    color: #777;
}

.hero .tagline {
    margin: 18px 0 0;
    font-size: 13px;
    letter-spacing: .06em;
    word-break: keep-all;
    color: #c81d1d;
}

.impress-enabled .hero {
    padding-top: 70px;
}

.impress-enabled .hero .logo {
    width: 350px;
    margin-bottom: 26px;
}

.impress-enabled .hero h1 {
    font-size: 108px;
    text-shadow: 0 2px 2px rgba(0, 0, 0, .1);
}

.impress-enabled .hero .slogan {
    margin-top: 18px;
    font-size: 76px;
    text-shadow: 0 2px 2px rgba(0, 0, 0, .1);
}

.impress-enabled .hero .tagline {
    margin-top: 44px;
    font-size: 20px;
    letter-spacing: .1em;
}


/* Services */

.services h2 {
    margin: 0 0 12px;
    font-size: 26px;
    letter-spacing: .12em;
    color: #444;
}

.services ul {
    margin: 0;
    padding: 0;
    list-style: none;
    font-size: 17px;
    line-height: 2.1;
}

.impress-enabled .services {
    padding-top: 96px;
}

.impress-enabled .services h2 {
    margin-bottom: 30px;
    font-size: 44px;
}

.impress-enabled .services ul {
    font-size: 30px;
    line-height: 2.05;
}


/* Content cards */

.card .kicker {
    margin: 0 0 4px;
    font-size: .68em;
    font-weight: 600;
    letter-spacing: .22em;
    color: #c81d1d;
}

.card h2 {
    margin: 0 0 .8em;
    font-size: 1.75em;
    line-height: 1.3;
    letter-spacing: .04em;
    color: #2f2f2f;
}

.card h2::after {
    content: "";
    display: block;
    width: 1.1em;
    height: 4px;
    margin-top: .32em;
    border-radius: 2px;
    background: #c81d1d;
}

.card .lead {
    margin: 0 0 .9em;
    color: #444;
}

.card .lead,
.card li,
.specs dd {
    text-align: justify;
}

.card ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.card li {
    position: relative;
    margin: 0 0 .7em;
    padding-left: 1em;
}

.card li::before {
    content: "";
    position: absolute;
    top: .7em;
    left: .1em;
    width: .34em;
    height: .34em;
    border-radius: 50%;
    background: #c81d1d;
}

.card li b {
    display: block;
    font-weight: 600;
    color: #004098;
}

.card .note {
    margin: 1em 0 0;
    font-size: .72em;
    color: #999;
}

.specs {
    margin: 0;
}

.specs div {
    margin: 0 0 .8em;
    padding: .7em .9em;
    border-left: 4px solid #c81d1d;
    border-radius: 0 10px 10px 0;
    background: #f6f6f7;
}

.specs dt {
    font-size: 1.4em;
    font-weight: 700;
    line-height: 1.3;
    color: #2f2f2f;
}

.specs dd {
    margin: .2em 0 0;
    color: #666;
}


/* Closing */

.closing .logo {
    display: block;
    width: 260px;
    height: auto;
    margin: 0 auto 18px;
}

.closing h2 {
    margin: 0;
    font-size: 24px;
    letter-spacing: .1em;
    word-break: keep-all;
    color: #444;
}

.closing p {
    margin: 10px 0 0;
    color: #777;
}

.impress-enabled .closing {
    padding-top: 180px;
}

.impress-enabled .closing .logo {
    width: 350px;
    margin-bottom: 40px;
}

.impress-enabled .closing h2 {
    font-size: 50px;
    letter-spacing: .14em;
}

.impress-enabled .closing p {
    margin-top: 24px;
    font-size: 26px;
    letter-spacing: .1em;
}


/* Footer: ICP filing number, plus the navigation toolbar in 3D mode */

#site-footer {
    box-sizing: border-box;
    padding: 18px 16px 26px;
    font-size: 12px;
    line-height: 1.9;
    text-align: center;
    color: #888;
}

#site-footer .legal {
    margin: 0;
}

#site-footer a {
    display: inline-block;
    margin-left: .8em;
    color: inherit;
    text-decoration: none;
}

#site-footer a:hover,
#site-footer a:focus {
    color: #c81d1d;
    text-decoration: underline;
}

#site-footer .hint,
#site-footer #impress-toolbar {
    display: none;
}

.sr-3d #site-footer {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 20;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 12px;
    align-items: center;
    padding: 6px 14px;
    border-top: 1px solid rgba(0, 0, 0, .06);
    background: rgba(255, 255, 255, .55);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    pointer-events: auto;
}

.sr-3d #site-footer .hint {
    display: block;
    justify-self: start;
    color: #999;
}

.sr-3d #site-footer #impress-toolbar {
    display: block;
    position: static;
    justify-self: end;
    opacity: .85;
}

#impress-toolbar button,
#impress-toolbar select {
    height: 24px;
    margin: 0 2px;
    padding: 0 8px;
    font: inherit;
    font-size: 12px;
    color: #555;
    vertical-align: middle;
    border: 1px solid rgba(0, 0, 0, .15);
    border-radius: 4px;
    background: rgba(255, 255, 255, .8);
    cursor: pointer;
}

@media (max-width: 1100px) {
    .sr-3d #site-footer {
        grid-template-columns: 1fr auto;
    }

    .sr-3d #site-footer .hint {
        display: none;
    }
}
