@import "./fonts/vivoSansSC-Regular/result.css";
@import "./fonts/vivoSansSC-SemiBold/result.css";

@font-face {
    font-family: "Inter";
    src: url("./fonts/Inter.ttf") format("truetype supports variations"),
        url("./fonts/Inter.ttf") format("truetype-variations");

    font-weight: 100 900;
    font-style: normal;
    font-display: block;
}
@font-face {
    font-family: "Satoshi";
    src: url("./fonts/Satoshi.ttf") format("truetype supports variations"),
        url("./fonts/Satoshi.ttf") format("truetype-variations");

    font-weight: 300 900;
    font-style: normal;
    font-display: block;
}
@font-face {
    font-family: "GoogleSansCode";
    src: url("./fonts/GoogleSansCode.ttf") format("truetype supports variations"),
        url("./fonts/GoogleSansCode.ttf") format("truetype-variations");

    font-weight: 300 800;
    font-style: normal;
    font-display: block;
}

html {
    scale: 170%;
    transform-origin: top;
    overflow-x: hidden;
}

@media screen and (max-width: 600px) {
    html {
        scale: 100%;
    }
}

body::-webkit-scrollbar {
    display: none;
}

body {
    margin: 0;
    padding: 0;
    color: #ffffff;
    -webkit-font-smoothing: antialiased;
    font-family: "vivoSansSC";
}

.document-flow {
    width: 480px;
    margin: 0 auto;
    background-color: #000;
    min-height: 100vh;
}

.content-block {
    box-sizing: border-box;
    break-inside: avoid;
    padding: 48px;
    break-after: page;
}

.cover {
    position: relative;
    width: 480px;
    height: 672px;
    page: cover;
    counter-reset: page 0;
}

.cover-title {
    margin-top: 72px;
    font-size: 48px;
    font-family: "Inter";
    line-height: 64px;
    font-weight: 500;
}

.cover-subtitle {
    font-size: 23px;
    opacity: 0.95;
    font-weight: 600;
    margin-top: 32px;
}

.cover-info {
    position: absolute;
    bottom: 48px;
    width: calc(100% - 100px);
    display: flex;
    justify-content: space-between;
    opacity: 0.7;
    font-size: 20px;
    font-family: "Satoshi";
    font-weight: 600;
    color: rgba(255, 255, 255, 0.7);
}

h1,
h2 {
    break-after: avoid; /* 避免标题出现在页面最后一行 */
}

/* 强制分页符：确实想另起一页时使用 <div class="page-break"></div> */
.page-break {
    break-after: page;
}

.page-number {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
}

h1 {
    font-size: 32px;
    font-weight: 600;
    line-height: 44px;
    margin: 0 0 12px 0;
    color: rgba(255, 255, 255, 1);
}

h2 {
    font-size: 20px;
    font-weight: 600;
    line-height: 28px;
    margin: 24px 0 8px 0;
    color: rgba(255, 255, 255, 0.95);
}

h3 {
    font-size: 16px;
    font-weight: 600;
    line-height: 23px;
    margin: 12px 0 8px 0;
    color: rgba(255, 255, 255, 0.9);
}

p,
li {
    font-size: 13px;
    font-weight: 400;
    line-height: 19px;
    margin: 0 0 10px 0;
    color: rgba(255, 255, 255, 0.8);
}

ul {
    margin: 0;
    padding-left: 1em;
}

.cover-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo {
    font-size: 18px;
    font-weight: bold;
    color: #fff;
}
.project-id {
    font-size: 14px;
    letter-spacing: 1px;
}

.chapter {
    font-family: "Satoshi";
    font-weight: 500;
    font-size: 18px;
    color: rgba(255, 255, 255, 0.6);
    line-height: 22px;
}

ol {
    margin: 0;
    padding: 0;
    margin-left: 1em;
}

strong {
    font-weight: 600;
    color: rgba(255, 255, 255, 0.95);
}

ul ul {
    list-style-type: disc;
}

a {
    color: #ffd700;
}

img {
    width: 100%;
    height: auto;
}

ol li li {
    list-style-type: lower-alpha;
}

li li:first-child {
    margin-top: 4px;
}

li li {
    margin-bottom: 4px;
}

code {
    font-family: "GoogleSansCode";
}

@media (prefers-color-scheme: light) {
    body {
        color: #000;
    }
    .chapter {
        color: rgba(0, 0, 0, 0.6);
    }
    h1 {
        color: rgba(0, 0, 0, 1);
    }
    h2 {
        color: rgba(0, 0, 0, 0.95);
    }
    h3 {
        color: rgba(0, 0, 0, 0.9);
    }
    p,
    li {
        color: rgba(0, 0, 0, 0.8);
    }
    strong {
        color: rgba(0, 0, 0, 0.95);
    }
    .page-number {
        color: rgba(0, 0, 0, 0.5);
    }
    .document-flow {
        background-color: #fff;
    }
    @page {
        background-color: #fff;
    }
    .cover-info {
        color: rgba(0, 0, 0, 0.6);
    }
    .logo {
        color: #000;
    }
}
