﻿html, body, h1, h2, h3, p, ul, li { margin: 0; padding: 0; }
html, body { overflow-x: hidden; }
body {
    min-height: 100vh;
    background-color: #020202;
    background-image:
        linear-gradient(48deg, transparent 0, transparent 48.2%, rgba(255,255,255,.06) 49.2%, rgba(255,255,255,.12) 50%, rgba(255,255,255,.06) 50.8%, transparent 51.8%),
        linear-gradient(132deg, transparent 0, transparent 48.2%, rgba(255,255,255,.05) 49.2%, rgba(255,255,255,.11) 50%, rgba(255,255,255,.05) 50.8%, transparent 51.8%);
    background-size: 500px 340px;
    background-position: center top;
    color: #ffe39e;
    font-family: Arial, "Microsoft YaHei", sans-serif;
}
a { color: inherit; text-decoration: none; }
ul, li { list-style: none; }
.topbar { height: 60px; background: #0e0e0e; border-bottom: 1px solid #252525; }
.top-inner {
    width: 980px;
    max-width: calc(100% - 32px);
    height: 60px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #fff;
}
.brand { display: flex; align-items: center; gap: 18px; min-width: 0; }
.brand-logo { display: block; width: 220px; height: auto; max-height: 54px; object-fit: contain; }
.home-link { font-size: 20px; font-weight: 700; }
.main {
    width: 980px;
    max-width: calc(100% - 32px);
    margin: 0 auto;
    padding: 20px 0 70px;
}
.hero-carousel { width: 100%; margin: 0 auto 20px; }
.carousel {
    position: relative;
    width: 100%;
    overflow: hidden;
    border: 1px solid #242424;
    border-radius: 5px;
    background: #111;
    box-shadow: 0 0 10px rgba(0, 0, 0, .35);
}
.carousel-desktop { aspect-ratio: 1900 / 255; }
.carousel-mobile { display: none; aspect-ratio: 1080 / 400; }
.carousel-track { position: relative; width: 100%; height: 100%; }
.carousel-slide { position: absolute; inset: 0; opacity: 0; pointer-events: none; transition: opacity .45s ease; }
.carousel-slide.is-active { opacity: 1; pointer-events: auto; }
.carousel-slide img { display: block; width: 100%; height: 100%; object-fit: cover; }
.carousel-btn {
    position: absolute;
    top: 50%;
    width: 32px;
    height: 42px;
    margin-top: -21px;
    border: 0;
    background: rgba(0, 0, 0, .45);
    color: #fff;
    font-size: 30px;
    line-height: 42px;
    text-align: center;
    cursor: pointer;
}
.carousel-btn:hover { background: rgba(0, 0, 0, .72); }
.carousel-prev { left: 0; }
.carousel-next { right: 0; }
.carousel-dots {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
}
.carousel-dot {
    width: 7px;
    height: 7px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, .52);
    cursor: pointer;
}
.carousel-dot.is-active { background: #ffe39e; }
.service {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}
.service a {
    min-width: 232px;
    box-sizing: border-box;
    padding: 14px 18px;
    border-radius: 5px;
    background: #9a2303;
    color: #fff;
    font-size: 18px;
    line-height: 1.2;
    text-align: center;
    font-weight: 700;
}
.service a:hover { background: #872300; }
.grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
    margin: 0 0 40px;
}
.grid a,
.platform-list a {
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    border: 1px solid #353535;
    border-radius: 5px;
    background: #181818;
    box-shadow: 0 0 2px #353535;
    font-size: 18px;
    font-weight: 700;
}
.grid a { color: #fff; }
.platform-section { margin-top: 8px; }
.platform-title {
    margin: 0 0 28px;
    color: #fff;
    font-size: 20px;
    line-height: 1.4;
    text-align: center;
    font-weight: 700;
}
.platform-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px 16px;
    margin: 0 auto 26px;
}
.platform-list a {
    flex: 0 0 150px;
    color: #ffe39e;
    border-color: #303030;
    box-shadow: 0 0 2px #303030;
}
.footer {
    margin-top: 34px;
    padding: 50px 16px;
    border-top: 1px solid #1c1c1c;
    background: rgba(0, 0, 0, .72);
    color: #f4f4f4;
    font-size: 16px;
    line-height: 2;
    text-align: center;
    font-weight: 700;
}
/* abgfix homepage platforms 1.0.14 */
@media (max-width: 900px) {
    .top-inner, .main { width: 100vw; max-width: 100vw; box-sizing: border-box; overflow: hidden; }
    .topbar, .top-inner { height: 58px; }
    .top-inner { padding-left: 10px; padding-right: 10px; }
    .brand { flex: 1 1 auto; gap: 12px; min-width: 0; overflow: hidden; }
    .brand-logo { width: 188px; max-height: 46px; }
    .home-link { flex: 0 0 auto; font-size: 16px; }
    .main { padding-top: 15px; }
    .hero-carousel { width: 100%; max-width: 370px; margin-bottom: 14px; }
    .carousel-desktop { display: none; }
    .carousel-mobile { display: block; }
    .carousel-mobile.carousel-empty { display: none; }
    .carousel-desktop.carousel-mobile-fallback { display: block; }
    .carousel-btn { width: 28px; height: 38px; margin-top: -19px; font-size: 26px; line-height: 38px; }
    .grid {
        width: 100%;
        max-width: 370px;
        margin-left: auto;
        margin-right: auto;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
        margin-bottom: 24px;
        overflow: hidden;
    }
    .platform-list {
        width: 100%;
        max-width: 370px;
        gap: 10px;
        margin-bottom: 24px;
        overflow: hidden;
    }
    .grid a, .platform-list a {
        flex: 0 0 calc((100% - 10px) / 2);
        width: 100%;
        max-width: 180px;
        min-width: 0;
        justify-self: center;
        height: 49px;
        font-size: 17px;
        overflow: hidden;
        white-space: nowrap;
    }
    .platform-title { margin-bottom: 14px; }
    .service a { width: 232px; max-width: 100%; font-size: 17px; }
    .footer { margin-top: 24px; padding: 32px 14px; font-size: 15px; }
}
@media (max-width: 380px) {
    .grid, .platform-list { max-width: calc(100vw - 20px); }
}
@media (max-width: 370px) {
    .brand-logo { width: 168px; }
    .home-link { font-size: 15px; }
}
/* abgfix mobile reference home 1.0.18 */
@media (max-width: 900px) {
    .hero-carousel {
        display: none !important;
    }
}
/* abgfix mobile platform spacing 1.0.19 */
@media (max-width: 900px) {
    .grid + .platform-section {
        margin-top: 38px;
    }
}
/* abgfix restore mobile carousel 1.0.20 */
@media (max-width: 900px) {
    .hero-carousel {
        display: block !important;
    }
    .carousel-desktop {
        display: none !important;
    }
    .carousel-mobile {
        display: block !important;
    }
    .carousel-mobile.carousel-empty {
        display: none !important;
    }
    .carousel-desktop.carousel-mobile-fallback {
        display: block !important;
    }
    .grid + .platform-section {
        margin-top: 8px;
    }
}
