/* html {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: #000;
    color: #ffffff;
    font-family: 'Orbitron', sans-serif;
} */
html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    background-color: #0d1117;
    color: #c9d1d9;
    font-family: 'Roboto Mono', monospace;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    display: flex;
    height: 100%;
    overflow: hidden;
}

.section {
    height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    scroll-snap-align: start;
}
#sections {
    scroll-snap-type: y mandatory;
    height: 100vh;
    width: 100%;
    overflow-y: scroll;
    scrollbar-width: none; /* Firefox */
}
#sections::-webkit-scrollbar {
    display: none; /* Chrome/Safari/Edge */
}

#particles-js { 
    position: fixed; 
    width: 100%; 
    height: 100vh; 
    left: 0; 
    top: 0; 
    z-index: -1; 
    overflow: hidden;
    pointer-events: none;
}

.content {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    transform: translate(-50%, -50%);
    z-index: 2;
    text-align: center;
    display: flex;
    flex-direction: column;
    /* text-shadow: 0 0 10px #0f0, 0 0 20px #0f0, 0 0 30px #0f0; */
}
.bottom {
    display: flex; /* 使用 flexbox 布局 */
    width: 100%;   /* 使两个 div 并排的容器宽度为 100% */
}

/* h1 {
    font-size: 5em;
    margin: 0;
} */

h1 {
    font-size: 3.5rem;
    font-weight: 700;
    color: #38bdf8; /* cyan-400 */
    letter-spacing: 0.05em;
    margin: 0;
}

#introduction p {
    font-family: 'Roboto Mono', monospace;
    font-size: 2.5rem;
    color: #8bceeb;
    margin-top: 10px;
    margin-bottom: 10px;
}
#blog {
    margin-top: 100px;
    width: 100%;
    /* max-width: 800px; */
    height: 100%;
    overflow-y: auto;
    /* border: 1px solid #0f0; */
    padding: 20px;
    /* background-color: rgba(0, 10, 0, 0.7); */
    text-align: left;
    display: flex;
    align-items: center;
    justify-content: center;
}

#tool {
    margin-top: 50px;
    width: 100%;
    /* max-width: 800px; */
    height: 100%;
    overflow-y: auto;
    /* border: 1px solid #0f0; */
    padding: 20px;
    /* background-color: rgba(0, 10, 0, 0.7); */
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

#tool h2, #tool h3 {
    color: #e1e8eb;
    text-align: center;
    /* text-shadow: 0 0 5px #0f0; */
}

#tool a {
    color: #b6c2ce;
    display: block;
    margin-bottom: 10px;
    font-size: 1.2em;
}

#tool a:hover {
    /* text-decoration: underline; */
    text-shadow: 0 0 5px #0f0;
}

#introduction {
    margin-top: 50px;
    width: 100%;
    /* max-width: 800px; */
    /* height: 30%; */
    /* overflow-y: auto; */
    /* border: 1px solid #0f0; */
    padding: 20px;
    /* background-color: rgba(0, 10, 0, 0.7); */
    text-align: center;
    /* display: inline-block; */
}

/* Custom scrollbar for tech feel */
#blog::-webkit-scrollbar {
    width: 10px;
}
#blog::-webkit-scrollbar-track {
    background: #5ef35e;
}

#blog h2, #blog h3 {
    color: #e1e8eb;
    /* text-shadow: 0 0 5px #0f0; */
}
#blog a {
    color: #b6c2ce;
    text-decoration: none;
    display: block;
    margin-bottom: 10px;
    font-size: 1.2em;
}
#blog a:hover {
    /* text-decoration: underline; */
    text-shadow: 0 0 5px #0f0;
}
.post-content {
    margin-top: 20px;
}
#back-button {
    cursor: pointer;
    display: block;
    margin-bottom: 20px;
    font-weight: bold;
}
#back-button:hover {
    /* text-decoration: underline; */
    text-shadow: 0 0 5px #0f0;
}

.clock {
  margin: 32px auto 0 auto;
  /* display: flex; */
  display: none;  /* 暂时不展示了 */
  justify-content: center;
  align-items: center;
  font-family: 'Orbitron', Arial, sans-serif;
  font-size: 2.5rem;
  font-weight: bold;
  color: #ff8800;
  /* background: #fff; */
  border-radius: 16px;
  /* box-shadow: 0 4px 24px rgba(255,136,0,0.08); */
  width: max-content;
  padding: 18px 36px;
  letter-spacing: 0.15em;
  user-select: none;
}
.clock span {
  min-width: 2ch;
  display: inline-block;
  text-align: center;
}
.clock .colon {
  color: #aaa;
  margin: 0 0.1em;
}

.index-nav {
    position: absolute;
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-align: center;
    top: 15px;
    /* left: 15%; */
    width: 100%;
    padding: 0 5vw;   /* 新增，左右各留5%的宽度 */
    box-sizing: border-box; /* 确保padding不撑大宽度 */
}

.index-nav a {
    position: static;
    margin: 0 12px;
    text-decoration: none;
    color: #8ad4f3;
    /* font-weight: bold; */
    font-size: 1.2em;
    /* left: 350%; */
}

.index-nav a.fr {
    position: static;
    font-size: 1.5em;
    color: #5ac4f1;
    /* left: 10%; */
    font-weight: bold;
}

.index-nav a.active {
    color: #fff;
    border-bottom: 2px solid #ff8800;
    font-weight: bold;
}

.post-list {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.post-item {
    margin: 16px 0;
    padding: 16px 20px;
    border-radius: 18px;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(8px);
    box-shadow: 0 2px 16px rgba(0,0,0,0.08);
    transition: box-shadow 0.2s;
}
.post-item:hover {
    box-shadow: 0 4px 24px rgba(0,0,0,0.16);
}
.post-title-line {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}
.post-title-line a {
    font-size: 1.1em;
    font-weight: bold;
    color: #222;
    text-decoration: none;
    display: inline-block;
}
.post-title-line a:hover {
    text-decoration: underline;
}
.post-desc-line {
    margin-top: 6px;
    color: #eea8a8;
    font-size: 0.98em;
}

.post-tags-inline {
    margin-left: 12px;
    display: flex;
    gap: 6px;
}
.post-tag {
    display: inline-block;
    background: #0d1117;
    color: #cf9030;
    border-radius: 12px;
    padding: 2px 10px;
    font-size: 0.88em;
    margin-right: 8px;
    margin-bottom: 2px;
    transition: background 0.2s;
}
.post-tag:hover {
    color: #fff;
    /* background: rgba(235, 241, 241, 0.22); */
}

.cmd-view {
    width: 35%;
}

.command {
    width: 100%; /* 宽度 */
    padding: 10px; /* 内边距 */
    /*border: 2px solid #007BFF; /* 边框 */
    border: none;
    border-radius: 10px; /* 圆角 */
    font-size: 16px; /* 字体大小 */
    color: #333; /* 字体颜色 */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); /* 阴影 */
    transition: border-color 0.3s ease; /* 动画效果 */
} 

input.active {
    border: none;
    outline: none;
    border-radius: 10px 10px 0 0;
}

#suggestions {
    width: 100%;
}

.suggestion-item {
    width: 100%; /* 宽度 */
    text-align: left;
    font-size: 16px; /* 字体大小 */
    color: #637; /* 字体颜色 */
    background-color: #ffffff;
    padding: 10px; /* 内边距 */
    font-weight: 2px;
}

#suggestions .active {
    background-color: #d9e4ef;
}

.suggestion-last-item {
    border-radius: 0 0 10px 10px;
}

.fa {
    padding-right: 10px;
}

.modal {
    display: none; /* 默认隐藏弹窗 */
    position: absolute;
    z-index: 10; /* 确保弹窗在其他内容之上 */
    left: 0;
    top: 0;
    width: 100%; /* 全屏宽度 */
    height: 100%; /* 全屏高度 */
    overflow: auto; /* 如果需要，允许滚动 */
    background-color: rgba(0, 0, 0, 0.5); /* 半透明背景 */
    transition: opacity 0.3s ease; /* 动画过渡效果 */
}

.modal-content {
    background-color: white; /* 弹窗内容的背景颜色 */
    margin: 15% auto; /* 上下居中，左右自适应 */
    padding: 20px;
    border: 1px solid #888; /* 边框样式 */
    width: 30%; /* 弹窗宽度 */
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.2); /* 阴影效果 */
    border-radius: 8px; /* 圆角效果 */
}

#modal h2 {
    color: #000000;
}

.modal-content p {
    color: #000000;
}

.close {
    color: #aaa; /* 关闭按钮颜色 */
    float: right; /* 右浮动 */
    font-size: 28px;
    font-weight: bold; /* 文字加粗 */
}

.close:hover,
.close:focus {
    color: black; /* 悬停时颜色改变 */
    text-decoration: none; /* 取消下划线 */
    cursor: pointer; /* 光标变为手型 */
}

@media screen and (max-width: 600px) {
    #introduction {
        padding: 0px;
    }

    #blog {
        padding: 0px;
    }

    #tool {
        padding: 0px;
    }

    .clock {
        font-size: 2.5rem;
        padding: 18px 0px;
        letter-spacing: 0.15em;
    }

    .clock span {
        min-width: 1ch;
    }

    .cmd-view {
        width: 80%;
    }
}
