@font-face {
    font-family: "ZhCn";
    src: url("assets/zh_cn_modify.ttf") format("truetype");
    font-weight: 400 800;
    font-style: normal;
    font-display: swap;
}

:root {
    --color-primary: #6f5cf1;
    --color-secondary: #1e1837;
    --color-accent: #c9c2ff;

    --color-text-light: #f7f4ff;
    --color-text-dark: #241f3d;
    --color-text-muted: rgba(247, 244, 255, 0.84);

    --bg-top: #f5f1eb;
    --bg-middle: #ebe4dc;
    --bg-bottom: #f5f1eb;

    --radius-xl: 28px;
    --radius-lg: 22px;
    --shadow-soft: 0 20px 60px rgba(20, 14, 42, 0.18);

    --hero-height: 220px;
    --download-height: 140px;
    --container-width: 1180px;
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    width: 100%;
    min-width: 320px;
    min-height: 100%;
}

body {
    font-family: "ZhCn", Arial, sans-serif;
    background: #120f22;
}

img {
    display: block;
    max-width: 100%;
}

.page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

.hero {
    height: var(--hero-height);
    flex: 0 0 var(--hero-height);
    background: var(--bg-top);
    display: flex;
    align-items: center;
}

.hero__content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
}

.hero__icon {
    width: 96px;
    height: 96px;
    border-radius: 24px;
    object-fit: cover;
    flex: 0 0 96px;
}

.hero__text {
    max-width: 560px;
    color: #846040;
}

.hero__title {
    margin: 0 0 8px;
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    line-height: 1.04;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.hero__subtitle {
    margin: 0;
    font-size: clamp(0.9rem, 1.4vw, 1rem);
    line-height: 1.6;
    color: #846040;
}

.about {
    flex: 1 1 auto;
    min-height: 0;
    background: var(--bg-middle);
    display: flex;
    align-items: stretch;
}

.about__content {
    flex: 1 1 auto;
    min-height: 0;
    display: grid;
    grid-template-columns: minmax(320px, 520px) minmax(320px, 1fr);
    gap: 48px;
    align-items: center;
    padding-top: 32px;
    padding-bottom: 32px;
}

.about__screens {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 0;
}

.carousel {
    position: relative;
    width: min(320px, 80vw);
}

.carousel__viewport {
    overflow: hidden;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-soft);
}

.carousel__track {
    display: flex;
    transition: transform 0.28s ease;
    will-change: transform;
}

.carousel__slide {
    width: 100%;
    flex: 0 0 100%;
    border-radius: var(--radius-xl);
    object-fit: cover;
}

.carousel__button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 46px;
    height: 46px;
    border: 0;
    border-radius: 999px;
    background: rgba(24, 19, 47, 0.76);
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 2;
    transition: background 0.18s ease, transform 0.18s ease, opacity 0.18s ease;
}

.carousel__button:hover {
    background: rgba(24, 19, 47, 0.92);
}

.carousel__button span {
    font-size: 30px;
    line-height: 1;
    transform: translateY(-1px);
}

.carousel__button--prev {
    left: -64px;
}

.carousel__button--next {
    right: -64px;
}

.about__description {
    min-height: 0;
    color: var(--color-text-dark);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.about__title {
    margin: 0 0 20px;
    font-size: clamp(1.7rem, 2.5vw, 2.2rem);
    line-height: 1.1;
    font-weight: 800;
}

.formatted-text {
    display: grid;
    gap: 14px;
    font-size: 1.2rem;
    line-height: 1.75;
	color: #bca895;
}

.formatted-text p {
    margin: 0;
}

.download {
    height: var(--download-height);
    flex: 0 0 var(--download-height);
    background: var(--bg-bottom);
    display: flex;
    align-items: center;
}

.download__content {
    display: flex;
    justify-content: center;
    align-items: center;
}

.download__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.18s ease, opacity 0.18s ease;
}

.download__link:hover {
    transform: translateY(-2px);
    opacity: 0.96;
}

.download__image {
    width: auto;
    max-width: min(280px, 72vw);
    height: auto;
}

@media (max-width: 960px) {
    :root {
        --hero-height: auto;
        --download-height: 128px;
    }

    .hero {
        height: auto;
        flex: 0 0 auto;
        padding: 36px 0;
    }

    .hero__content {
        flex-direction: column;
        text-align: center;
        gap: 18px;
    }

    .about__content {
        grid-template-columns: 1fr;
        gap: 28px;
        padding-top: 28px;
        padding-bottom: 28px;
    }

    .about__description {
        text-align: center;
    }
}

@media (max-width: 560px) {
    .container {
        padding: 0 16px;
    }

    .carousel {
        width: min(280px, 82vw);
    }

    .carousel__button {
        width: 40px;
        height: 40px;
    }

    .carousel__button--prev {
        left: -10px;
    }

    .carousel__button--next {
        right: -10px;
    }

    .formatted-text {
        font-size: 0.98rem;
        line-height: 1.68;
    }

    .download__image {
        max-width: min(240px, 72vw);
    }
}