@import url("https://fonts.googleapis.com/css2?family=Google+Sans+Flex:opsz,wght@14..144,100..900&display=swap");

:root {
    color-scheme: light dark;
    --page-bg: #f5f6f8;
    --page-text: #16181d;
    --button-bg: #0071e3;
    --button-text: #ffffff;
    --button-outline: rgba(0, 113, 227, 0.35);
}

@media (prefers-color-scheme: dark) {
    :root {
        --page-bg: #11151c;
        --page-text: #edf2fb;
        --button-bg: #2f8fff;
        --button-text: #f7fbff;
        --button-outline: rgba(120, 185, 255, 0.6);
    }
}

html,
body {
    margin: 0;
    padding: 0;
    background-color: var(--page-bg);
    color: var(--page-text);
    font-family: "PingFangSC-Regular-woff2", "SF Pro SC", "SF Pro Text", "SF Pro Icons", "PingFang SC", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

a {
    color: var(--button-bg);
    font-family: "pingfangsc-semibold-woff2";
}

.landing-page {
    min-height: 100vh;
    /* padding: 0.5vw; */
}

.landing-hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    gap: 1rem;
}

.landing-hero__title {
    font-family: "PingFangSC-Semibold-woff2";
    font-size: 10vw;
    line-height: 1;
}

.landing-hero__subtitle {
    font-family: "PingFangSC-Light-woff2";
    font-size: 4.5vw;
    line-height: 1.1;
}

.button-area {
    display: flex;
    justify-content: center;
    margin-top: 0.75rem;
}

.primary-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45em;
    padding: 11px 21px;
    min-width: 8vw;
    border: 0.15vh solid transparent;
    border-radius: 50vw;
    background-color: var(--button-bg);
    color: var(--button-text);
    cursor: pointer;
    font-family: "PingFangSC-Regular-woff2", "SF Pro SC", "SF Pro Text", "SF Pro Icons", "PingFang SC", "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 1.7vw;
    font-style: normal;
    font-weight: 400;
    line-height: 1.2;
    letter-spacing: normal;
    text-align: center;
    text-decoration: none;
    white-space: nowrap;
    -webkit-font-smoothing: antialiased;
}

.primary-action__icon {
    width: 1em;
    height: 1em;
    flex: 0 0 auto;
    background-color: currentColor;
}

.primary-action .togo {
    -webkit-mask: url('./icon/togo.svg') no-repeat center / contain;
    mask: url('./icon/togo.svg') no-repeat center / contain;
}

.primary-action .person {
    -webkit-mask: url('./icon/person-3.svg') no-repeat center / contain;
    mask: url('./icon/person-3.svg') no-repeat center / contain;
}

.primary-action:hover {
    text-decoration: none;
}

.primary-action:focus-visible {
    outline: 0.25vw solid var(--button-outline);
    outline-offset: 0.5vh;
}

.manifesto {
    display: flex;
    justify-content: center;
    padding: 6vw 0 10vw;
    --manifesto-gradient: linear-gradient(170deg, #d0768c 0%, #bf46a5 10%, #7029b2 50%, #341d8c 100%);
}

.manifesto__panel {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2.5vw;
}

.manifesto__meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2vw;
}

.manifesto__copy {
    display: flex;
    align-items: flex-start;
    gap: 4vw;
    font-family: "PingFangSC-Semibold-woff2";
    font-size: 10vw;
    line-height: 10vw;
    background-image: var(--manifesto-gradient);
    background-size: cover;
    background-position: center;
    background-blend-mode: overlay;
    color: transparent;
    -webkit-background-clip: text;
    background-clip: text;
}

.manifesto__headline {
    white-space: normal;
}

.manifesto__aside {
    text-align: right;
}

.manifesto__informant {
    flex: 0 0 auto;
    width: 9vw;
    height: 9vw;
    display: flex;
    align-items: center;
    justify-content: center;
}

.manifesto__informant-icon {
    width: 100%;
    height: 100%;
    display: block;
    background-image: var(--manifesto-gradient);
    -webkit-mask: url('./icon/person-3.svg') no-repeat center / contain;
    mask: url('./icon/person-3.svg') no-repeat center / contain;
}

.manifesto__meta-text {
    font-family: "PingFangSC-Semibold-woff2";
    font-size: 3.6vw;
    line-height: 1;
    background-image: var(--manifesto-gradient);
    background-size: cover;
    background-position: center;
    color: transparent;
    -webkit-background-clip: text;
    background-clip: text;
    white-space: nowrap;
}

.manifesto__background {
    background: linear-gradient(170deg, #d0768c 0%, #bf46a5 10%, #7029b2 50%, #341d8c 100%);
}

.button-area .manifesto__background {
    border: 0;
}

.bg-alt {
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
}

.developer-router-links {
    padding: 2vw 0 8vw;
}

.section-content {
    width: min(1180px, calc(100vw - 4vw));
    margin: 0 auto;
}

.row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.25rem;
    justify-content: center;
    justify-items: center;
}

.column {
    min-width: 0;
}

.block {
    display: block;
    height: 100%;
    color: inherit;
    text-decoration: none;
}

.text-center {
    text-align: center;
}

.router-card {
    padding: clamp(18px, 2vw, 28px) clamp(14px, 1.6vw, 20px);
    min-height: 220px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    color: var(--page-text);
}

.router-card__icon {
    color: var(--button-bg);
    width: clamp(54px, 5vw, 82px);
    height: clamp(54px, 5vw, 82px);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.router-card__icon svg {
    width: 100%;
    height: 100%;
    display: block;
}

.github-chart-padding {
    padding-left: 25px;
    padding-right: 25px;
}

.router-icon-svg {
    width: 60px;
    height: 60px;
    overflow: visible;
}

.sa-play-main {
    --sa-m: 2;
    --sa-w: 91.061;
    --sa-h: 70.459;
    --sa-turn: 0;
    --sa-deg: 90;
}

.sa-play-wide {
    --sa-m: 2;
    --sa-w: 126.952;
    --sa-h: 70.459;
}

.sa-g-1 {
    --sa-g: 1;
}

.sa-g-0 {
    --sa-g: 0;
}

.link-underline {
    text-decoration: underline;
}

.wwdc-banner {
    background-color: #000;
    color: #fff;
    position: relative;
}

.wwdc-banner__image {
    width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

.wwdc-banner__overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90vw;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5em;
}

.wwdc-banner__title {
    font-size: 4em;
    font-family: pingfangsc-semibold-woff2;
    line-height: 1;
}

.wwdc-banner__subtitle {
    font-size: 1.5em;
    font-family: pingfangsc-regular-woff2;
    text-align: center;
}

.translation-note {
    text-align: center;
    font-size: 0.875rem;
    color: #fff;
    background: #000;
}

bold {
    font-family: 'PingFangSC-Semibold-woff2';
}

light {
    font-family: 'PingFangSC-Ultralight-woff2';
}

regular {
    font-family: 'PingFangSC-Regular-woff2';
}

.red {
    color: #ff4242;
}

.dot {
    text-decoration: underline dotted green;
}

.fontlist-row {
    display: flex;
    justify-content: flex-start;
    align-items: center;
}

.font-pf-ultralight {
    font-family: 'PingFangSC-Ultralight';
}

.font-pf-thin {
    font-family: 'PingFangSC-Thin';
}

.font-pf-light {
    font-family: 'PingFangSC-Light';
}

.font-pf-regular {
    font-family: 'PingFangSC-Regular';
}

.font-pf-medium {
    font-family: 'PingFangSC-Medium';
}

.font-pf-semibold {
    font-family: 'PingFangSC-Semibold';
}

.font-pf-ultralight-ttf {
    font-family: 'PingFangSC-Ultralight-ttf';
}

.font-pf-thin-ttf {
    font-family: 'PingFangSC-Thin-ttf';
}

.font-pf-light-ttf {
    font-family: 'PingFangSC-Light-ttf';
}

.font-pf-regular-ttf {
    font-family: 'PingFangSC-Regular-ttf';
}

.font-pf-medium-ttf {
    font-family: 'PingFangSC-Medium-ttf';
}

.font-pf-semibold-ttf {
    font-family: 'PingFangSC-Semibold-ttf';
}

.font-pf-ultralight-woff2 {
    font-family: 'PingFangSC-Ultralight-woff2';
}

.font-pf-thin-woff2 {
    font-family: 'PingFangSC-Thin-woff2';
}

.font-pf-light-woff2 {
    font-family: 'PingFangSC-Light-woff2';
}

.font-pf-regular-woff2 {
    font-family: 'PingFangSC-Regular-woff2';
}

.font-pf-medium-woff2 {
    font-family: 'PingFangSC-Medium-woff2';
}

.font-pf-semibold-woff2 {
    font-family: 'PingFangSC-Semibold-woff2';
}

.router-card p {
    margin: 0;
}

.block-link {
    display: inline-block;
    color: var(--button-bg);
    font-size: clamp(24px, 1.7vw, 18px);
    line-height: 1.35;
    font-family: "PingFangSC-Regular-woff2", "SF Pro SC", "SF Pro Text", "PingFang SC", sans-serif;
}

.router-card__sub-link {
    display: block;
    color: var(--button-bg);
    font-size: clamp(13px, 1.45vw, 16px);
    line-height: 1.3;
}


/* Responsive adjustments for small screens */
@media (max-width: 768px) {
    .landing-page {

        /* padding: 4vw; */
    }

    .landing-hero {
        min-height: 70vh;
        padding: 6vh 2vw;
        gap: 0.6rem;
    }

    .landing-hero__title {
        font-size: clamp(28px, 12vw, 64px);
        line-height: 1.05;
    }

    .landing-hero__subtitle {
        font-size: clamp(14px, 5.5vw, 28px);
        line-height: 1.1;
    }

    .primary-action {
        font-size: clamp(14px, 4.5vw, 18px);
        padding: 10px 18px;
        min-width: auto;
    }

    .manifesto {
        padding: 8vw 2vw 12vw;
    }

    .manifesto__panel {
        gap: 4vw;
    }

    .manifesto__copy {
        /*flex-direction: column;
        align-items: center;*/
        gap: 2.5vw;
        font-size: clamp(20px, 8vw, 40px);
        line-height: 1.1;
    }

    .manifesto__informant {
        width: 20vw;
        height: 20vw;
    }

    .manifesto__meta-text {
        font-size: clamp(12px, 4vw, 18px);
        white-space: normal;
    }

    .developer-router-links {
        padding: 4vw 0 14vw;
    }

    .section-content {
        width: calc(100vw - 8vw);
        margin: 0 auto;
    }

    .row {
        grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
        gap: 3vw;
        justify-content: center;
        justify-items: center;
    }

    .router-card {
        min-height: 170px;
        border-radius: 22px;
    }

    .router-card__icon {
        width: 56px;
        height: 56px;
    }

    .input {
        font-size: clamp(24px, 4vw, 20px);
    }

}

.material-font {
    font-family: 'Google Sans Flex', 'Roboto', 'Noto Sans SC', sans-serif;
}

.sy-none {
    display: none;
}

.layout-toolbar {
    position: relative;
    display: none;
}

.layout-toolbar img {
    position: absolute;
    right: 20px;
    top: 20px;
    width: 30px;
    height: 30px;
    cursor: pointer;
}

.team-avatar-row {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 1.5rem;
}

.team-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
}

.github-chart-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin-top: 2rem;
    padding: 0 1rem;
    gap: 1rem;
}

.github-chart-container img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* 使覆盖文本与背景反色以提高可读性 */
.invert-overlay {
    color: white;
    mix-blend-mode: difference;
    -webkit-font-smoothing: antialiased;
}