﻿/* 全局 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    list-style: none;
    text-decoration: none;
}

/* 字体 */
@font-face {
    font-family: 'MOJANG';
    src: url("./fonts/MOJANGABC.woff2") format('woff2'), url("./fonts/MOJANGABC.woff") format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "weiruanyahei";
    src: url("./fonts/msyh.ttc") format('truetype');
}

/* 全屏滚动（整页都能滑） */
html, body {
    width: 100%;
    height: 100%;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    background: url("./image/background.jpg") no-repeat center center fixed;
    background-size: cover;
    font-family: "weiruanyahei", sans-serif;
}

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

.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 9999;
    pointer-events: none;
}

.nav {
    background-color: rgba(0,210,210,0.85);
    padding: 16px 16px;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    pointer-events: auto;
}

.nav-list {
    display: flex;
    gap: 32px;
}

.nav-item {
    position: relative;
    display: flex;
    text-align: left;
    justify-content: center;
    align-items: center;
    height: 100%;
    gap: 16px;
}

    .nav-item a, .dropbtn {
        display: flex;
        align-items: flex-start;
        justify-content: left;
        color: white;
        font-size: 18px;
        background: transparent;
        border: none;
        cursor: pointer;
    }

.logo {
    font-family: 'MOJANG';
    font-size: 24px;
}

    .logo a {
        color: white;
    }

/* 底部导航 - 固定 + 无白边 + 不拦滑动 */
.footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: rgba(0,210,210,0.85);
    color: white;
    text-align: center;
    padding: 16px;
    height: auto;
    font-size: 18px;
    z-index: 9999;
}

.footer a {
    color: white;
}

.ul {
    list-style-type: none;
}

/* 下拉菜单 */
.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #00e2e2;
    min-width: 208px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    z-index: 10;
    max-width: 90vw;
}

    .dropdown-content a {
        padding: 12px 16px;
        display: block;
        font-size: 16px;
    }

.dropdown:hover .dropdown-content {
    display: block;
}

/* 主内容容器 */
.main {
    display: flex;
    flex-direction: column;
    max-width: 1680px;
    justify-content: center;
    padding: 0px, 16px, 0px, 16px; 
    align-content: center;
    margin: 0 auto;
}

.main-header {
    display: flex;
    grid-template-columns: 40% 60%;
    gap: 16px;
    padding: 76px 16px 16px 16px;
    width: 100%;
    /* 主容器最小尺寸 */
    min-width: 500px;
    min-height: 600px;
}

/* 左侧侧边栏 */
.sidebar {
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 25px;
    padding: 32px 16px 16px 16px;
    min-height: 400px;
    width: initial;
    /* 侧边栏最小宽度 */
    min-width: 300px;
}

.profile {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.profile-photo {
    width: 60%;
    max-width: 300px;
    margin-bottom: 16px;
}

    .profile-photo img {
        width: 100%;
        border-radius: 50%;
        object-fit: cover;
    }

.personal-info {
    text-align: center;
    color: #006060;
}

    .personal-info h3 {
        font-size: 20px;
        margin-bottom: 8px;
    }

/* 右侧内容区 */
.content-area {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
    flex: auto;
}

/* 卡片组（时间+占位） */
.card-group {
    display: flex;
    gap: 16px;
    width: 100%;
    flex-wrap: wrap;
}

/* 通用卡片样式 */
.card {
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 25px;
    padding: 16px;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 280px;
    font-size: 18px;
    color: #006060;
}

/* 时间卡片样式 */
.time-card {
    flex-direction: column;
    color: #006060;
}

.time-title {
    font-size: 18px;
    margin-bottom: 8px;
}

.time-date {
    font-size: 24px;
    font-weight: 500;
    margin-bottom: 4px;
}

.time-clock {
    font-size: clamp(24px, 4vw, 32px);
    font-weight: bold;
    margin-bottom: 8px;
}

.time-tips {
    font-size: clamp(16px, 2vw, 18px);
}

/* 下方卡片 */
.news-card {
    display: flex;
    min-height: 100px;
    width: 100%;
    height: 100%;
    flex-direction: column;
    align-content: initial;
    align-items: flex-start;
    justify-content: flex-start;
}

.news-card-items {
    display: block;
    flex-wrap: wrap;
    height: initial;
    justify-content: flex-start;
}

    .news-card-items .title {
        color: #006060;
        height: initial;
        font-size: 120%;
    }

    .news-card-items .info {
        color: #006060;
        flex-wrap: wrap;
        padding-left: 16px;
    }

.project-updates-card {
    padding: 16px;
    display: flex;
    flex-wrap: wrap;
}

.project-updates-card-items {
    width: 100%;
    height: 50%;
    display: flex;
    flex-wrap: wrap;
}

    .project-updates-card-items .title {
        color: #006060;
        height: initial;
        font-size: 120%;
    }

    .project-updates-card-items .info {
        height: initial;
        flex-wrap: wrap;
        padding-left: 16px;
    }

.main-container {
    display: flex;
    padding: 0px 16px 0px 16px;
    gap: 16px;
    flex-direction: column;
}

.main-container-items {
    background-color: rgba(255,255,255,0.5);
    border-radius: 25px;
    padding: 16px;
}

    .main-container-items h1 {
        font-family: '黑体';
        font-size: 200%;
        text-align: center;
        color: #006060
    }

.main-container-items-about-me {
    width: 100%;
    display: flex;
    background-color: none;
    flex-direction: row;
    padding-top: 16px;
}

    .main-container-items-about-me h1 {
        font-size: 150%;
        font-family: '黑体';
        justify-content: center;
        padding-bottom: 16px;
    }

.main-container-items-about-me-items {
    width: 50%; 
    flex-direction: row;
}

.main-container-items-about-me-items div {
    display: flex;
    flex-direction: row;
    padding-bottom: 8px;
}

.main-container-items-about-me b, .main-container-items-about-me p {
    padding-left: 16px;
    color: #006060;
    font-size: 125%;
}

.main-container-items-technology-stack {
    flex-direction: row;
    display: flex;
}

.main-container-items-technology-stack div {
    display: flex;
    flex-direction: row;
    padding-bottom: 8px;
}

.main-container-items-technology-stack b {
    padding-left: 16px;
    color: #006060;
    font-size: 175%;
}

.main-container-items-info {
    padding: 32px 32px 32px 32px;
    background-color: none;
}

    .main-container-items-info p {
        color: #006060;
    }

.main-container-items-line {
    width: 150px;
    margin: 0 auto;
    padding: 0px;
    height: 8px;
    background-color: #008080;
    border-radius: 8px;
}

.main-container-items-line2 {
    height: 50px;
    padding: 0px;
    width: 8px;
    background-color: #008080;
    border-radius: 8px;
}

.programming-logos {
    display: flex;
    justify-content: center;
    gap: 16px;
    padding-top: 32px;
}

    .programming-logos img {
        width: 20%;
        max-width: 150px;
        min-width: 100px;
    }

.placeholder {
    height: 144px;
}

@media (max-width: 1300px) {
    .main-header {
        display: flex;
        gap: 0;
    }
    /* 主容器横向排列（头像 + 内容区） */
    .main-header {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 16px;
        padding: 80px 16px 16px 16px;
        margin: 0 auto;
        min-width: 300px;
        min-height: 500px;
    }
    /* 头像侧边栏适配 */
    .sidebar {
        flex: 0 0 auto;
        width: 400px;
        min-width: 150px;
        min-height: 200px;
    }
    /* 内容区占剩余宽度 */
    .content-area {
        flex: 1;
        min-width: 280px;
    }
    /* 时间卡片和右侧卡片纵向排列 */
    .card-group {
        flex-direction: column;
        gap: 16px;
    }
    /* 卡片样式微调 */
    .card {
        min-width: 100%;
        min-height: 200px;
    }
}

@media(max-width: 768px) {
    .main-header {
        padding-top: 186px;
    }

    .header {
        height: 100px;
    }

    /* 左侧侧边栏 */
    .sidebar {
        padding: 0px;
        height: 0;
        min-height: 0;
        width: 0;
        /* 侧边栏最小宽度 */
        min-width: 0;
        display: none;
    }

    .profile {
        display: flex;
        justify-content: center;
        align-items: center;
        flex-direction: column;
    }

    .profile-photo {
        width: 0;
        max-width: 300px;
        margin-bottom: 0;
    }

        .profile-photo img {
            width: 0;
            border-radius: 50%;
            object-fit: cover;
        }

    .personal-info {
        text-align: center;
        color: #006060;
    }

        .personal-info p {
            font-size: 0;
            justify-content: center;
        }

        .personal-info h3 {
            font-size: 0px;
            margin-bottom: 0px;
            justify-content: center;
        }

    .nav-item a, .dropbtn {
        color: white;
        padding: 16px 12px;
        font-size: 16px;
    }

    .nav {
        flex-direction: column; /* 竖排 */
        align-items: flex-start;
        gap: 16px;
    }

    .nav-list {
        display: grid;
        flex-direction: column; /* 导航项竖排 */
        grid-template-columns: repeat(3, 1fr); /* 3列 */
        grid-template-rows: repeat(2, auto); /* 2行 */
        align-items: flex-start;
        width: 100%;
        gap: 0;
    }

    .nav-item a, .dropbtn {
        width: 100%;
        padding: 12px 10px;
        justify-content: center;
        text-align: left;
    }

    .footer {
        font-size: 10px;
        height: auto;
    }

    .placeholder {
        height: 108px;
    }

    .main-container-items-about-me {
        flex-direction: column;
    }

    .main-container-items-about-me-items {
        width: 100%;
        flex-direction: column;
    }

        .main-container-items-about-me-items div {
            display: flex;
            flex-direction: row;
            padding-bottom: 8px;
        }
}

