
@font-face {
  font-family: 'SmileySans';
  src: url('../_data/fonts/SmileySans-Oblique.ttf.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: 'SmileySans-Bold';
  src: url('../_data/fonts/SmileySans-Oblique.ttf.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
}

@font-face {
  font-family: 'WenQuanWeiMiHei';
  src: url('../_data/fonts/WenQuanWeiMiHei.tff.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
}

@font-face {
    font-family: 'WenQuanYiBitmapSong';
    src: url('../_data/fonts/WenQuanYi.Bitmap.Song.16px.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'WenQuanYiBitmapSong-Bold';
    src: url('../_data/fonts/WenQuanYi.Bitmap.Song.16px.woff2') format('woff2');
    font-weight: 800;
    font-style: normal;
}

:root {
    --night-blue: #1a365f;
    --night-blue-darker: #122541;
    --moon_white: #f4f6fb;
    --moon-blue: #e0d9ed;
    --frost_white: #f0f4ff;
    --quote_gray: #d5d6ff;
    --neon_blue: #bce5fd;
    --neon_orange: #ff9d58;
    --neon_pink: #FF7F00;
    --light_blue: #4a90e2;
    --neon_green: #1EBD43;
    --shallow_green: #71f891;

    --btn-green-bg: #22983e;
    --btn-green-text: #f4f6fb;

    --btn-blue-text: #f4f6fb;
    --btn-blue-bg: #155e9e;

    --btn-gray-bg: #8d95a9;
    --btn-gray-hover: #e0d9ed;
    --btn-gray-text: #f4f6fb;

    --link-text : #ceebff;
    --link-hover: #58cbfd;
    --link-underline-hover: #e0d9ed;

    --highlight-1: #ff9d58;
    --shade-1: #a9c2e4;
    
    --svg-1-color: #f4f6fb;
    --svg-2-color: #6291d3;
    --svg-3-color: #4a6fa3;
}

.a-nav {
    color: var(--frost_white);
    text-decoration: none;
    font-weight: 800;
    font-size: 22px;
    position: relative;

}

.a-content {
    color: var(--link-text);
    text-decoration: none;
    font-weight: 800;
    font-size: 22px;
    position: relative;
}

a:hover {
    color: var(--link-hover);
    text-decoration: underline;
    text-decoration-color: var(--neon_orange);
    text-decoration-thickness: 2px;
    text-underline-offset: 4px;
}

a:active {
    color: var(--link-text);
    transform: translateY(1px);
}

.nav-bar {
    position: relative;
    display: flex;
    flex-direction: row;
    background: var(--night-blue);
    justify-content: space-between; /* 主轴右对齐 */
    align-items: flex-end; /* 交叉轴垂直居中 */
    height: inherit;
    width: 100%;
}

nav div {
    display: flex;
}

.nav-links {
    display: flex;
    gap: 1rem;
    position: relative;
    justify-content: flex; /* 主轴右对齐 */
    flex-wrap: nowrap;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 高级交互效果 */
.nav-links a:hover {
    color: var(--neon_blue);
    border-radius: 6px;
    baseline-shift: 0.5px;
}

.nav-toggle {
    position: relative;
    color: var(--frost_white);
    text-decoration: none;
    display: none;
    font-size: 2rem;
    font-weight: 800;
    padding: 0rem 3rem;
}

.quote {
    font-family: 'SmileySans', sans-serif;
    max-width: 60%;
    font-size: 1.1rem;
    color: var(--quote_gray);
    margin: 0 auto;
    text-align: left;
    padding: 1rem 0;
}

.flex {
    display: flex;
    flex-direction: row;
    align-items: center;
}


.quote-author {
    font-family: 'SmileySans', sans-serif;
    max-width: 60%;
    font-size: 1.10rem;
    color: var(--quote_gray);
    text-align: right;
    margin: 0 auto;
}

.content-text {
    font-size: 1.1rem;
    color: var(--moon_white);
    margin: 0 auto;
    text-align: left;
    padding: 10px 0;
}

.backdrop-blur {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5); /* 半透明背景 */
  backdrop-filter: blur(5px); /* 关键模糊属性 */
  z-index: 999; /* 低于菜单但高于内容 */
  opacity: 0;
  pointer-events: none; /* 默认不可点击 */
  transition: opacity 0.03s ease;
}

.nav-link.active ~ .backdrop-blur {
  opacity: 1;
  pointer-events: auto; /* 激活后可点击 */
}

/* 兼容性处理 */
@supports not (backdrop-filter: blur(5px)) {
  .backdrop-blur {
    background: rgba(0, 0, 0, 1); /* 降级为纯色遮罩 */
  }
}

.title_1 {
    font-family: 'SmileySans-Bold', sans-serif;
    font-size: 2.4rem;
    color: var(--moon_white);
    text-align: left;
    margin: 0 auto;
    padding: 1rem 0;
    display: flex;
    align-items: center;
    align-self: center;
}

.title_2 {
    font-size: 1.6rem;
    color: var(--moon_white);
    text-align: left;
    margin: 0 auto;
    padding: 1rem 0;
    display: flex;
    align-items: center;
    align-self: flex-start;
}

.title_3 {
    font-size: 1.4rem;
    color: var(--moon_white);
    text-align: left;
    margin: 0 auto;
    padding: 1rem 0;
    display: flex;
    align-items: center;
    align-self: flex-start;
}

.site-header {
  align-self: center;
  position: fixed;
  width: 1000px;
  height: 140px;
  background-color: var(--night-blue);
  z-index: 1000;
  padding-bottom: 2rem;
}

.img-logo {
    height: 100px;
    width: auto;
    object-fit: contain;
    position: relative;
}

.content-offset {
    height: 40px;
}

.slogan {
    font-family: 'WenQuanYiBitmapSong-Bold', sans-serif;
    font-size: 3rem;
    color: var(--moon_white);
    text-align: center;
    margin: 0 auto;
    padding: 1rem 0;
}

.slogan-text {
    font-family: 'WenQuanYiBitmapSong', sans-serif;
    font-size: 1.5rem;
    color: var(--quote_gray);
    text-align: center;
    margin: 0 auto;
    padding: 1rem 0;
}

.ready-player-table {
    max-width: 60%;
    margin: 0 auto;
    transform: translateX(-20%);
}

.ready-player-table tr {
    width: 300px;
    height: 60px;
    border: 1px solid var(--neon_green);
}

.ready-player-table td {
    padding: 6px;
}

.player-select {
    width: 100%;
}

.ready-player-icon {
    will-change: transform;
    animation-fill-mode: both;
    visibility: hidden;
}

.ready-player-a {
    font-family: 'WenQuanYiBitmapSong', sans-serif;
    color: var(--moon_white);
    text-decoration: none;
    font-size: 2rem;
}

.ready-player-a:hover {
    color: var(--neon_blue);
    text-decoration: none;
}

@keyframes pulse {
  0% ,100% { 
    transform: scale(0.9); 
    opacity: 0.8; 
    color : var(--moon_white);
    text-shadow: 0 0 10px var(--moon_white);
  }
  50% { 
    transform: scale(1.1); 
    opacity: 1; 
    color : var(--neon_pink);
    text-shadow: 0 0 20px  var(--neon_pink);
    }
}

.player-select:hover { 
    text-decoration: none;
    animation: pulse 1.2s infinite alternate;
}
.player-select:hover .ready-player-icon{ 
    visibility: visible;
}

.gamepad-large {
    margin-left: auto;
    margin-right: 0%;
    display: flex;
    justify-content: right;
    margin-right: -10%;
}

.nav-p {
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    align-items: flex-end;
    font-size: small;
    color: var(--frost_white);
}

.nav-footer {
    width: 40%;
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    align-items: center;
    font-size: small;
    color: var(--frost_white);
    margin: 0 auto;
    padding-bottom: 20px;
}

.nav-footer .beian-logo {
    width: 15px;
    height: 15px;
    
    object-fit:fill;
}

.nav-footer a {
    color: var(--frost_white);
    font-size: small;
    text-decoration: none;
    font-weight: 800;
    display: flex;
}

.nav-footer a:hover {
    color: var(--neon_blue);
    text-decoration : underline;
    text-decoration-color: var(--moon_white);
    text-decoration-thickness: 2px;
}

.lang-switch {
    position: relative;
    border-radius: 2px;
    color: var(--neon_green);
    transition: all 0.3s;
    font-weight: 900;
    font-size: 1.5rem;
    margin-left: 3rem;
}

body {
    max-width: 1000px;
    margin: 0 auto;
    font-family: "WenQuanWeiMiHei";
    font-size: 16px;
    display: flex;
    flex-direction: column;
    min-height: 110vh;
}

.content {
    flex: 1 0 auto; /* 允许内容区域扩展 */
    max-width: 60%;
    align-self: center;
    padding-top: 180px; /* 留出导航栏高度 */
}

.indent {
    margin-left: 2rem;
}

.sub-indent {
    margin-left: 4.2rem;
    font-size: 1rem;
    color: var(--shade-1);
}

.link {
    color: var(--link-text);
    font-size: 18px;
    text-decoration: none;
    font-weight: 800;
}

.highlight {
    color: var(--highlight-1);
}

.bold {
    font-weight: 1000;
    font-size: 1.1rem;
}


.neon-text-blue { 
    text-shadow: 0 0 10px var(--neon_blue);
    animation: glow-blue 4s ease-in-out infinite alternate;
}

.neon-text-green {
    text-shadow: 0 0 10px var(--neon_green);
    animation: glow-blue 4s ease-in-out infinite alternate;
}

.btn {
    background-color: var(--btn-green-bg);
    color: var(--btn-green-text);
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.contact-table {
    max-width: 90%;
    margin: 0 auto;
}

.contact-table th {
  text-align: right;  /* 标签右对齐 */
  padding-right: 15px;
  width: 45%;      /* 可选：标签宽度 */
}

.contact-table td {
  text-align: left;   /* 内容左对齐 */
}

.github-corner {
    position: fixed;
    top: 0;
    right: 0;
    z-index: 1002;
}

.container {
    width: 100%;
}

.form-group {
    display: flex;
    flex-direction: row;
    gap: 1rem;
    margin-bottom: 1rem;
    
    width: 100%;
    margin: 0 auto;
}

.form-group .content-text {
    flex: 1; /* 自动分配剩余空间 */
    color: var(--moon_white);
    text-align: left;
    padding-bottom: 2rem;
}

.form-row {
    display: flex;
    justify-content: space-evenly;
    gap: 1rem;
    width: 100%;
}

.form-col {
    display: flex;
    min-width: 0; /* 防止内容溢出 */
    flex: 1; /* 自动分配剩余空间 */
}

.contact-text-area{
    display: flex;
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    margin-bottom: 1rem;
    align-items: center;
    height: 100px; /* 设置文本区域高度 */
}

.contact-form-input {
    display: flex;
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    margin-bottom: 1rem;
    align-items: center;
}

.contact-form-submit {
    width: 100%;
    background-color: var(--neon_orange);
    text-align: center;
    margin-top: 10px;
}

.dropdown {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    width: max-content;
    gap: clamp(0.5rem, 2vw, 1rem);
}

.dropdown-menu {
    display: none; /* 默认隐藏 */
    position: absolute;
    top: 100%; /* 紧贴父项底部 */
    min-width: max-content;
    white-space: nowrap;
    font-size: 1.1rem;

    justify-content: center;
    align-items: center;

    border-left: 3px solid var(--neon_blue);
    border-bottom: 4px solid var(--neon_blue);
    border-radius: 4px;
}

.dropdown:hover .dropdown-menu {
    display: flex; /* 鼠标悬停时显示 */
    flex-direction: column;
}

.dropdown-menu a {
    display: inherit;
        
    flex: 1 0 auto; 
    min-width: 120px; /* 确保菜单项宽度一致 */

    padding: 0.8rem 1.3rem;
    color: var(--moon_white);
    text-decoration: none;
    background-color: var(--night-blue-darker);
}

.dropdown-menu a:hover {
    color: var(--neon_blue);
    text-decoration: underline;
    text-decoration-color: var(--neon_orange);
    text-decoration-thickness: 2px;
    border-radius: 0;
}

.clb-section {
    scroll-margin-top: 220px; /* 值 = Header高度 + 额外间距 */
    padding-left: 1rem;

    min-height: 700px;
}

.clb-sub-section {
    margin-left: 20px;
    padding-left: 20px;
    border-left: 2px solid var(--light_blue);
}

.clb-box {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start; /* 使内容顶部对齐 */
    margin-left: -10%; /* 负边距使内容区域宽度超过容器 */
    width: 120%; /* 使内容区域宽度超过容器 */
}

.clb-content {
    flex: 1; /* 允许内容区域扩展 */
    
}

/* 浮动导航容器 */
.floating-nav {
    position: sticky; /* 滚动时固定 */
    top: 180px; /* 低于Header高度 */
    align-self: flex-start; /* 避免被拉伸 */
    display: flex;
    width: 180px;
    margin-right: 10px;
    flex-direction: column;
}

/* 浮动导航按钮样式 */
.nav-btn {
    padding: 10px 15px;
    border-radius: 4px;
    text-decoration: none;
    text-align: center;
    color: var(--btn-gray-text);
    font-size: 1.1rem;
    background-color: var(--btn-gray-bg);
    margin-bottom: 10px;
    transition: all 0.3s;
    justify-content: left;
    display: flex;
    align-items: center;

    min-width: 150px; /* 确保按钮宽度一致 */
}

/* 高亮当前区块对应的按钮 */
.nav-btn.active {
    background-color: var(--btn-blue-bg);
    color: var(--btn-blue-text);
    transform: scale(1.05);
}

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


@keyframes glow-blue {
  from {
    text-shadow: 0 0 10px #00f7ff;
  }
  to {
    text-shadow: 0 0 20px #00f7ff, 0 0 30px #0084ff;
  }
}


.about-me {
    font-family: 'WenQuanYiBitmapSong', sans-serif;
    font-size: 1.8rem;
    color: var(--neon_green);
    text-align: left;
    margin: 0 auto;
    padding: 1rem 0;
    font-weight: 800;
    border-top: #bcbfbd 1px solid;
    padding-top: 2rem;
    text-decoration: underline;
    text-decoration-color: var(--highlight-1);
    text-decoration-thickness: 2px;
    text-underline-offset: 8px;
}

.about-me-text {
    font-family: 'WenQuanYiBitmapSong', sans-serif;
    font-size: 1.1rem;
    color: var(--shallow_green);
    text-align: left;
    margin: 0 auto;
    padding: 1rem 0;
}


footer {
    color: var(--moon_white);
    text-align: center;
    border-top: #b0b0b0 1px solid;
    padding: 1rem 0; /* 添加内边距 */
}

@media (max-width: 1000px) {
    body {
        min-height: 95vh;
    }

    .title_1 {
        font-size: 4rem;
        padding: 0.5rem 0;
    }

    .site-header {
        width: 100%;
        height: 130px;
        background-color: var(--night-blue);
        z-index: 1001;
    }

    .nav-bar {
        z-index: 1001;
    }

    .github-corner {
        display: none; /* 在移动端隐藏 GitHub 角落 */
    }

    .nav-links {
        font-size: 4rem;
        flex-direction: column;
        display: none;
        position: relative;
        border-radius: 4px;
        transform: scaleY(1);
        transform-origin: right;
        opacity: 1;
        transition: all 0.3s cubic-bezier(0.04, 0, 0.2, 1);
        z-index: 1001;
    }

    .nav-links.active {
        transform: scaleY(1);
        display: flex;
        position: relative;
        top: 6rem;
        right: inherit;
        opacity: 1;
        transition: all 0.3s cubic-bezier(0.04, 0, 0.2, 1);
        z-index: 1001;
        align-self: flex-start;
    }

    .nav-links a {
        text-align: right;
        padding-right: 1rem;
    }

    .nav-toggle {
        color: var(--frost_white);
        display: contents;
        text-decoration: none;;
        font-weight: 800;
        transition: transform 0.2s;
    }

    .nav-toggle::before {
        content: '☰';
        transition: all 0.3s;
        position: relative;
        font-size: 32px;
        margin-top: 16px;
        margin-right: 80px;
    }

    .nav-toggle:hover {
        color: var(--neon_blue);
        text-decoration: underline;
        background: #333;
    }

    .img-logo {
        left: 0%;
    }

    .quote {
        font-size: 2rem;
        max-width: 90%;
    }

    .quote-author {
        font-size: 2rem;
        max-width: 90%;
    }

    .content {
        max-width: 90%;
        font-size: 2rem;
    }

    .content-text {
        font-size: 2.0rem;
        max-width: 90%;
    }

    .slogan {
        font-size: 5rem;
    }

    .link {
        font-size: 2.1rem;
    }

    .dropdown {
        position: relative;
        display: flex;
        flex-direction: column;
    }

    .dropdown-menu {
        display: flex;
        position: relative;
        flex-direction: column;
        margin-right: 20px;
        border-left: 0;
        border-bottom: 0;
        border-right: 2px solid var(--neon_blue);
        border-radius: 0;
    }

    .dropdown:hover .dropdown-menu {
        display: flex;
        position: relative;
        flex-direction: column;
        text-align: right;
    }

    .dropdown-menu a {
        display: flex;
        padding: 0.5rem;
        color: var(--moon_white);
        background: none;
        margin-left: auto;
        font-size: 1.2rem;
    }

    .floating-nav {
        display: none;
    }
    .nav-btn {
        display: none;;
    }

    .clb-box {
        flex-direction: column;
        align-items: center;
        margin: auto;
        width: 90%;
        justify-content: center;
    }

    .title_2 {
        width: 100%;
        padding-bottom: 1rem;
        margin: 0;
        align-items: left;
        align-items: center;
        align-self: flex-start;
    }

    .clb-section {
        scroll-margin-top: 220px; /* 值 = Header高度 + 额外间距 */
        padding-left: 0rem;
        width: 100%;
    }

    .clb-sub-section {
        width: 95%;
        border-left: 2px solid var(--light_blue);
    }

    .indent {
        margin-left: 5rem;
        font-size: 1.8rem;
    }

    .sub-indent {
        margin-left: 8rem;
        font-size: 1.6rem;
        color: var(--shade-1);
    }

    .gamepad-large {
        margin-left: auto;
        margin-right: 0%;
        display: flex;
        justify-content: right;
    }

    .about-me {
        font-size: 3rem;
        padding-top: 4rem;
        width: 90%;
    }

    .about-me-text {
        font-size: 2rem;
        padding: 1rem 0;
        width: 90%;
    }

}

.mobile body{
    font-size: 3rem;
    height: 90vh;
}

.mobile .nav-links a {
    font-size: 40px;
    margin-left: 140px;
    padding: 2rem 2rem;
}

.mobile .nav-toggle::before {
    font-size: 4rem;
    margin-top: 10px;
    padding: 1rem, 1rem;
}

.mobile .lang-switch {
    font-size: 3rem;
}

.mobile .dropdown {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;

    margin-right: 20px;
    border-left: 0;
    border-bottom: 0;
    border-right: 2px solid var(--neon_blue);
    border-radius: 0;
    
}

.mobile .dropdown-menu a {
    font-size: 3rem;
    margin-right: 2rem;
    display: flex;
    padding: 0.5rem;
    background: none;
    margin-left: auto;
}

.mobile .dropdown-menu svg {
    width: 3rem;
    height: 3rem;
}
