/* 全局定义 */
:root {
    /* 页面相关 */
    --bg-page: #F2F5F7;
    --page-max-width: 1280px;
    /* 设备定义 */
    --dimension-mobile-max-width: 768px;
    --dimension-tablet-max-width: 1024px;
    /* 标题文本 */
    --title-text-color: #333;
    --title-text-font-weight: 500;
    /* 普通文本 */
    --text-color: #333;
    --text-size: 16px;
    --text-font-weight: 400;
}

/* 通用 */
html {
    min-width: 375px;
}
html, body, div {
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
}
body {
    align-self: center;
    width: 100%;
    background-color: var(--bg-page);
    min-width: 375px;
}

/* 通用 - 空白间隔 */
.comm-spacer {
    flex: 1;
}

/* 通用 - 加载更多 */
.comm-load-more {
    background-color: #FFF;
    padding: 6px 16px;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    border-radius: 36px;
    cursor: pointer;
}
.comm-load-more-text {
    font-size: 12px;
    font-weight: 600;
    color: #666;
}
.comm-load-more-icon {
    width: 24px;
    height: 24px;
    fill: #666;
    margin-left: 4px;
}

/* 导航栏 */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    user-select: none;
    background-color: rgba(255, 255, 255, 0.8);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(8px);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
    z-index: 100;
}
.navbar-body {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    width: 100%;
    max-width: 1280px;
    height: 72px;
}
.navbar-body-logo {
    width: 62px;
    height: 62px;
    margin-right: 16px;
    margin-left: 16px;
}
.navbar-body-name {
    font-size: 18px;
    color: var(--text-color);
    font-weight: var(--text-font-weight);
}
.navbar-body-actions {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    list-style: none;

    @media (max-width: 768px) {
        display: none;
    }
}
.navbar-body-action-item {
    margin-left: 12px;
    margin-right: 12px;
    cursor: pointer;
    :not(:last-child) {
        padding-right: 12px;
        padding-left: 0;
    }
    :not(:first-child) {
        padding-left: 12px;
        padding-right: 0;
    }
    a {
        color: #000;
        text-decoration: none;
    }
}
.navbar-body-prefs {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
}
.navbar-body-pref-item {
    width: 24px;
    height: 24px;
    padding: 6px;
}
.navbar-body-expand {
    display: none;
    padding: 6px;
    cursor: pointer;

    @media (max-width: 768px) {
        display: block;
    }
}
.navbar-menu-mobile {
    display: none;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-end;
    max-height: 0;
    overflow: hidden;
    margin: 0;
    transition: max-height 300ms ease;
    list-style: none;
    width: 100%;
    padding: 0;

    @media (max-width: 768px) {
        display: flex;
    }
}
.navbar-menu-mobile-expand {
    max-height: 230px;
}
.navbar-menu-mobile-item {
    width: 100%;
    box-sizing: border-box;
    padding: 16px 28px;
    text-align: right;
    cursor: pointer;
    background-color: transparent;
    transition-duration: 300ms;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
    &:hover {
        background-color: #C4C4C4;
    }
}
.navbar-menu-mobile-item-external-link {
    margin-left: 8px;
}

/* 轮播图 */
.banner {
    width: 100%;
    height: 720px;
    background-color: antiquewhite;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    padding-top: 60px;
}
.banner-image {
    position: absolute;
    z-index: 5;
}
.banner-image-img {
    width: 100%;
    max-width: 460px;
    opacity: 0.1;
}
.banner-content {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    z-index: 10;
    text-overflow: fade;
    line-break: anywhere;
}
.banner-content-primary {
    font-size: 48px;
    font-weight: 600;
}
.banner-content-secondary {
    margin-top: 12px;
    font-size: 48px;
    font-weight: 600;
}
.banner-content-description {
    margin-top: 24px;
    font-size: 36px;
    font-weight: 600;
}

/* 近期动态 */
.recent {
    max-width: 1280px;
    box-sizing: border-box;
    padding: 0 16px;
    align-self: center;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
.recent-title {
    font-size: 32px;
    font-weight: var(--title-text-font-weight);
    color: var(--title-text-color);
}
.recent-body {
    margin: 48px 0;
    width: 100%;
    box-sizing: border-box;
    display: grid;
    gap: 42px;
    grid-template-columns: repeat(2, 1fr);

    @media (max-width: 1024px) {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}
.recent-item {
    box-sizing: border-box;
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: flex-start;
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 36px;
    box-shadow: 0 0 16px rgba(0, 0, 0, 0.05);
    backdrop-filter: blur(8px);
    padding: 10px 20px 10px 10px;
    cursor: pointer;
}
.recent-image {
    width: 128px;
    height: 128px;
    margin-right: 13px;
    position: relative;
    @media (max-width: 768px) {
        width: 78px;
        height: 78px;
    }
}
.recent-image-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 26px;
}
.recent-image-number {
    width: 28px;
    height: 28px;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    border-radius: 26px;
    border: 1px solid #FFF;
    position: absolute;
    right: 9px;
    bottom: 9px;
    background-color: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(8px);
}
.recent-image-number-num {
    font-weight: bold;
    color: #333;
    font-size: 14px;
}
.recent-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
}
.recent-content-top {
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 5px;
}
.recent-content-top-title {
    flex: 1;
    font-size: 16px;
    color: #000;
    font-weight: bold;
}
.recent-content-top-time {
    font-size: 14px;
    color: #C4C4C4;
    font-weight: 400;
}
.recent-content-center {
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    margin-bottom: 13px;
    min-height: 41px;
}
.recent-content-center-message {
    font-size: 16px;
    font-weight: 400;
    color: #333;
}
.recent-content-bottom {
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
}
.recent-content-bottom-like {
    padding: 10px;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    background-color: #F0F0F0;
    border-radius: 36px;
    border: 1px solid #FFF;
    cursor: pointer;
}
.recent-content-bottom-like-icon {
    width: 20px;
    height: 20px;
    fill: #666;
}

/* 关于我 */
.about-me {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 1280px;
    align-self: center;
}
.about-me-title {
    width: 100%;
    text-align: center;
    font-size: 32px;
    font-weight: var(--title-text-font-weight);
    color: var(--title-text-color);
}
.about-me-items {
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
}
.about-me-item {
    width: 100%;
    margin: 94px 0;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    padding: 0 16px;
    box-sizing: border-box;
    @media (max-width: 1024px) {
        flex-direction: column;
    }
}
.about-me-item-image {
    width: 400px;
    height: 430px;
    mask-image: linear-gradient(to bottom, #000 50%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, #000 50%, transparent 100%);
    margin-right: 48px;
    @media (max-width: 1024px) {
        margin-right: 0px;
    }
}
.about-me-item-content {
    width: 100%;
    padding: 16px 0;
    cursor: pointer;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    @media (max-width: 1024px) {
        align-items: center;
    }
}
.about-me-item-content-title {
    width: 100%;
    font-weight: 400;
    text-align: left;
    font-size: 32px;
    color: #000;
    @media (max-width: 1024px) {
        text-align: center;
    }
}
.about-me-item-content-description {
    width: 100%;
    margin-top: 10px;
    font-weight: 400;
    text-align: left;
    font-size: 22px;
    color: #000;
    @media (max-width: 1024px) {
        text-align: center;
    }
}
.about-me-item-content-3-col-grid {
    width: 100%;
    margin-top: 26px;
    display: grid;
    box-sizing: border-box;
    justify-items: center;
    gap: 16px;
    grid-template-columns: repeat(3, 1fr);
    @media (min-width: 1024px) and (max-width: 1280px) {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    @media (max-width: 1024px) {
        grid-template-columns: repeat(1, 1fr);
        gap: 16px;
    }
}
.about-me-item-content-dev-card {
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    padding: 16px;
    box-sizing: border-box;
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(8px);
    border-radius: 16px;
    box-shadow: 0 0 16px rgba(0, 0, 0, 0.05);
    max-width: 600px;
}
.about-me-item-content-dev-card-title {
    width: 100%;
    font-size: 14px;
    font-weight: 400;
    color: #000000;
}
.about-me-item-content-dev-card-descriptions {
    width: 100%;
    font-size: 12px;
    font-weight: 400;
    color: #666;
}
.about-me-item-content-dev-card-icons {
    margin-top: 10px;
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
}
.about-me-item-content-dev-card-icon {
    width: 28px;
    height: 28px;
    color: #666;
    fill-color: #666;
    object-fit: contain;
    margin-right: 16px;
    margin-bottom: 16px;
}
.about-me-item-content-life-card {
    width: 100%;
    padding: 16px;
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(8px);
    border-radius: 16px;
    box-sizing: border-box;
    box-shadow: 0 0 16px rgba(0, 0, 0, 0.05);
    max-width: 600px;
}
.about-me-item-content-life-card-num {
    font-size: 32px;
    color: #000;
    font-weight: 500;
}
.about-me-item-content-life-card-label {
    margin-top: 10px;
    color: #666;
    font-size: 16px;
    font-weight: 400;
}
.about-me-item-content-2-col-grid {
    width: 100%;
    margin-top: 26px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    box-sizing: border-box;
    justify-items: flex-start;
    align-items: center;    /* 垂直居中 */
    @media (max-width: 1280px) {
        grid-template-columns: repeat(1, 1fr);
    }
    @media (max-width: 1024px) {
        justify-items: center;
    }
}
.about-me-item-content-achievement-card {
    box-sizing: border-box;
    width: 100%;
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 12px 16px;
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 16px;
    backdrop-filter: blur(8px);
    max-width: 600px;
}
.about-me-item-content-achievement-card-icon {
    width: 36px;
    height: 36px;
    fill: #000;
    object-fit: contain;
}
.about-me-item-content-achievement-card-content {
    display: flex;
    margin-left: 16px;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    flex: 1;
}
.about-me-item-content-achievement-card-content-title {
    font-size: 18px;
    font-weight: 500;
    color: #000;
}
.about-me-item-content-achievement-card-content-message {
    margin-top: 10px;
    font-size: 16px;
    font-weight: 400;
    color: #000;
}

/* 社交链接 */
.social-link {
    max-width: 1280px;
    align-self: center;
}
.social-link-title {
    color: black;
    font-size: 32px;
    font-weight: 500;
    line-height: 48px;
    text-align: center;
}
.social-link-icons {
    margin-top: 52px;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}
.social-link-icon {
    margin: 11px;
    padding: 18px;
    width: 48px;
    height: 48px;
    object-fit: contain;
    cursor: pointer;
    border-radius: 100px;
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(8px);
}

/* 站内信 */
.contact {
    box-sizing: border-box;
    margin: 0 16px;
    max-width: calc(1280px - 32px);
    align-self: center;
    display: flex;
    flex-direction: column;
    justify-items: center;
    align-items: center;
    width: 100%;
}
.contact-title {
    width: 100%;
    font-size: 36px;
    font-weight: 500;
    color: #333;
    text-align: center;
}
.contact-form {
    max-width: 1000px;
    display: grid;
    width: calc(100% - 32px);
    margin-top: 30px;
    margin-left: 16px;
    margin-right: 16px;
    box-sizing: border-box;
    grid-template-columns: repeat(12, 1fr);
    gap: 12px;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    background-color: #FFF;
    border-radius: 16px;
    box-shadow: 0 0 16px rgba(0, 0, 0, 0.1);
    padding: 36px 16px;
}
.contact-form-cell-12 {
    grid-column: span 12;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
}
.contact-form-cell-6 {
    grid-column: span 6;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    @media (max-width: 768px) {
        grid-column: span 12;
    }
}
.contact-form-message {
    font-size: 14px;
    font-weight: 400;
    color: #666666;
    text-align: left;
}
.contact-form-cell-label {
    color: #000;
    font-size: 18px;
    font-weight: 500;
    line-height: 33px;
    text-align: left;
    width: 100%;
}
.contact-form-cell-button {
    color: #000;
    align-self: center;
    font-size: 20px;
    width: 100%;
    max-width: 300px;
    box-sizing: border-box;
    padding: 12px 36px;
    border: none;
    border-radius: 8px;
    background-color: #DDD;
    font-weight: 600;
    cursor: pointer;
}
.contact-form-cell-input {
    box-sizing: border-box;
    padding: 8px 16px;
    min-height: 64px;
    width: 100%;
    border: none;
    border-radius: 8px;
    background-color: #F2F5F7;
}

/* 页脚 */
.footer {
    width: 100%;
    background-color: #D9DCE2;
    box-sizing: border-box;
    display: flex;
    justify-content: center;
    align-items: center;
}
.footer-body {
    max-width: 1280px;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    box-sizing: border-box;
    padding: 36px 18px;
}
.footer-body-logo {
    width: 64px;
    height: 64px;
    object-fit: cover;
}
.footer-body-text {
    margin-top: 10px;
    font-weight: 400;
    font-size: 16px;
    color: #8C8C8C;
}

