body {
    margin: 0;
    min-height: 100vh;
    background-color: #1E1E1E;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: sans-serif;
    color: #fff;
}

/* About Section Layout */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 30px;
    margin-top: 20px;
    align-items: start;
}

/* 个人照片 */
.profile-pic {
    width: 100%;
    max-width: 220px;
    border-radius: 50%;
    border: 4px solid #1E90FF;
    margin-bottom: 20px;
    display: block;
    transition: transform 0.4s ease;
}
.profile-pic:hover {
    transform: scale(1.05) rotate(2deg);
}

/* 信息卡片 */
.info-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 20px;
    transition: transform 0.3s, box-shadow 0.3s;
}
.info-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.4);
}

/* 标题带图标 */
.info-card h2 {
    color: #1E90FF;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 18px;
    border-bottom: 1px solid rgba(255,255,255,0.2);
    padding-bottom: 5px;
}

.info-card ul {
    list-style: none;
    padding-left: 0;
    margin: 10px 0;
}
.info-card ul li::before {
    content: "▹ ";
    color: #1E90FF;
    font-weight: bold;
}

/* 技能 Tag 风格 */
.skills-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.skill-tag {
    background: rgba(30,144,255,0.15);
    color: #fff;
    border: 1px solid rgba(30,144,255,0.4);
    border-radius: 20px;
    padding: 6px 12px;
    font-size: 14px;
    font-weight: bold;
    transition: all 0.3s ease;
    cursor: default;
}
.skill-tag:hover {
    background: #1E90FF;
    color: #fff;
    transform: scale(1.1);
    box-shadow: 0 4px 10px rgba(30,144,255,0.6);
}


/* -------- Awards Section -------- */
#awards {
    padding: 20px;
}

.awards-list {
    display: flex;
    flex-direction: column;
    gap: 15px;   /* 块之间间距 */
}

.award-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    padding: 20px;
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;

    margin: 0;   /* ✅ 确保不增加额外的外边距 */
}


.award-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}

.award-item h3 {
    margin: 0 0 10px 0;
    font-size: 20px;
    font-weight: bold;
    background: linear-gradient(90deg, #1E90FF, #FF6B6B);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* 年份 badge 样式（换颜色） */
.award-year {
    font-size: 14px;
    background: rgba(30, 144, 255, 0.2); /* 半透明亮蓝色 */
    padding: 3px 8px;
    border-radius: 12px;
    margin-left: 10px;
    color: #1E90FF; /* 深蓝色文字 */
    font-weight: bold;
}

.award-item p {
    margin: 0;
    font-size: 15px;
    line-height: 1.6;
    color: #ddd;
}


.glass {
    margin: 20px auto 0px auto;
    padding: 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 35px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    flex-direction: column;
    width: calc(100% - 40px);
    max-width: 1200px;
    height: 90vh;
    box-sizing: border-box;
}

nav {
    display: flex;
    justify-content: center;
    padding: 15px;
    border-bottom: 1px solid rgba(255,255,255,0.2);
}
nav a {
    margin: 0 20px;
    text-decoration: none;
    color: #fff;
    font-weight: bold;
    font-size: 18px;
    cursor: pointer;
    transition: color 0.3s;
}
nav a:hover {
    color: #1E90FF;
}
nav a.active {
    color: #1E90FF;
}
.content {
    flex: 1;
    padding: 20px;
    text-align: left;
    overflow: hidden;
}
section {
    display: none;
    height: 100%;
    box-sizing: border-box;
}
section.active {
    display: block;
}

/* -------- Projects Timeline -------- */
#project {
    padding: 20px;
    max-height: 70vh;
    overflow-y: auto;
    overflow-x: hidden;
    box-sizing: border-box;

    width: 100%;       /* ✅ 让 project 占满玻璃容器 */
}

.timeline-container {
    display: flex;
    flex-direction: column;
    position: relative;
    margin-left: 80px;
    padding-right: 15px;  /* ✅ 内容和滚动条保持间距 */
}

.timeline-line {
    position: absolute;
    left: -40px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #fff;
}
.timeline-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 60px;
    position: relative;
}
.timeline-dot {
    position: absolute;
    left: -48px;
    width: 16px;
    height: 16px;
    background: #fff;
    border-radius: 50%;
    transition: transform 0.3s;
}
.timeline-year {
    position: absolute;
    left: -100px;
    font-size: 20px;
    font-weight: bold;
}
.project-card {
    border: 1px solid #fff;
    border-radius: 10px;
    padding: 20px;
    background: none;
    flex: 1;
    transition: transform 0.3s;
}
.project-card h2 {
    margin-top: 0;
    color: #1E90FF;
}
.project-card ul {
    margin: 10px 0 0 20px;
}

.timeline-item:hover .timeline-dot {
    transform: translateX(8px);
}
.timeline-item:hover .project-card {
    transform: translateX(8px);
}
/* Activity Section */
#activity {
    padding: 20px;
    text-align: center;
}

.activity-grid {
    display: flex;
    justify-content: center;  /* 居中对齐 */
    gap: 30px;                /* 两块之间的间距 */
}

/* 固定宽度的卡片 */
.activity-card {
    width: 420px;             /* ✅ 固定宽度 */
    height: 520px;            /* ✅ 固定高度 */
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
}

.activity-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.4);
}

/* 图片 */
.activity-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

/* 内容 */
.activity-content {
    padding: 15px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.activity-content h3 {
    margin: 0 0 10px 0;
    color: #1E90FF;
}

.activity-date {
    font-size: 14px;
    color: #bbb;
    margin-bottom: 10px;
}

.activity-content ul {
    padding-left: 20px;
    margin: 10px 0;
    font-size: 14px;
    text-align: left;
}

/* 标签 */
.activity-tags {
    margin-top: auto;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.tag {
    background: rgba(30,144,255,0.15);
    color: #1E90FF;
    border-radius: 12px;
    padding: 4px 10px;
    font-size: 12px;
    font-weight: bold;
    transition: all 0.3s;
}
.tag:hover {
    background: #1E90FF;
    color: #fff;
}
/* -------- Hobby Section -------- */
#hobby {
    padding: 20px;
}

.hobby-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.hobby-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    padding: 20px;
    transition: transform 0.3s, box-shadow 0.3s;
}
.hobby-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}

.hobby-card h3 {
    color: #1E90FF;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.hobby-card p {
    margin: 0 0 10px;
    color: #ddd;
    font-size: 14px;
    line-height: 1.6;
}

.hobby-gallery {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}
.hobby-gallery img {
    width: 70px;
    height: 70px;
    border-radius: 8px;
    object-fit: cover;
    transition: transform 0.3s;
}
.hobby-gallery img:hover {
    transform: scale(1.1);
}



/* -------- Contact Section -------- */
#contact {
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 20px;
    box-sizing: border-box;
}
.contact-container {
    display: flex;
    justify-content: space-between;
    gap: 40px;
}
.contact-left, .contact-right {
    flex: 1;
}
.contact-item {
    margin: 12px 0;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: color 0.3s;
}
.contact-item i {
    width: 20px;
    transition: color 0.3s;
}
.contact-item a, .contact-item span {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s;
}
.contact-item:hover a,
.contact-item:hover span,
.contact-item:hover i {
    color: #1E90FF;
}
form {
    display: flex;
    flex-direction: column;
}
form label {
    margin: 8px 0 4px;
}
form input, form textarea {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    margin-bottom: 12px;
    background: transparent;
    color: #fff;
}
form textarea {
    resize: none;
}
button {
    padding: 12px;
    border: 1px solid #fff;
    background: transparent;
    color: #fff;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: background 0.3s, color 0.3s;
}
button:hover {
    background: #1E90FF;
    color: #fff;
}
.success {
    color: #4CAF50;
    margin-top: 10px;
}
.error {
    color: #f44336;
    margin-top: 10px;
}

/* 滚动条美化 */
#project::-webkit-scrollbar {
    width: 8px;
}
#project::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.4);
    border-radius: 4px;
}
#project::-webkit-scrollbar-track {
    background: transparent;
}
footer {
    text-align: center;
    padding: 12px 0;
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
    margin-top: 20px;
    width: 100%;
    position: relative;  /* 默认跟随文档流 */
}

#status-message {
    margin-top: 10px;
    opacity: 1;
    transition: opacity 1s ease;
}

/* 如果你希望它始终固定在页面底部（即使内容很少时也在最下方），用这个 */
body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.glass {
    flex: 1;  /* 占据剩余高度，把 footer 挤到最下面 */
}