@charset "UTF-8"; /* 声明CSS文件编码为UTF-8，确保中文等字符正常显示 */

/* ---CSS全局全局样式--- */
/* 超链接样式 */
a {
    color: inherit; /* 超链接颜色继承父元素的颜色，不使用默认蓝色 */
    text-decoration: none; /* 去除超链接默认的下划线 */
}

/* 图片不溢出 */
img{
    max-width: 80%; /* 图片最大宽度限制为父元素的80%，防止图片过大溢出容器 */
    height: auto; /* 高度自动计算，保持图片原始宽高比例，避免变形 */
}

/* ---Body样式设置--- */
body {
    font-family: source-sans-pro; /* 指定页面文本使用source-sans-pro字体显示 */
        background-color: #e7edf7; /* 页面背景色与主背景一致，避免闪白 */
    overflow: auto; /* 当内容超出视口时，自动显示滚动条 */
    min-height: auto; /*  body元素的最小高度自动适应，由内容撑开 */
    margin: 0 auto; /* 水平方向居中对齐，上下外边距为0 */
    height: auto; /* 高度自动，由内容决定 */
}

/* 页面背景 */
body::before {
  content: ""; /* 伪元素伪元素必须设置的空内容，使元素元素才能生效 */
  position: fixed; /* 固定定位，使背景图不随页面滚动移动 */
  top: 0;
  left: 0;
  width: 100%;
  height: 100%; /* 占满元素占满整个视口区域，实现全屏背景 */

  /* 1. 背景图基础设置 */
    background-image: url("../assets/bg.webp"); /* 背景图片路径（使用WebP格式减少小体积） */
  background-repeat: no-repeat; /* 禁止图片重复平铺 */
  background-size: cover; /* 图片等比例缩放至覆盖全屏（可能裁剪边缘） */
  background-position: center; /* 图片在容器中居中显示 */

  /* 视觉样式效果 */
  filter: blur(5px); /* 图片模糊处理（5px模糊度） */
  transform: scale(1.05); /* 图片轻微放大1.05倍，解决模糊化后边缘空白问题 */
  z-index: -1; /* 层级设为-1，确保在所有内容下方，不遮挡主内容 */

  contain: layout paint;
}

/* 首页入场动画：等待加载层移除后再展开 */
header.glass-nav,
.top-section,
.container1,
.container2,
.collapsible-container,
.container3,
.course-table-container,
.Friendship-Links-container,
.Copyright-container {
    transform-origin: top center;
    transition:
        opacity 0.75s ease,
        transform 0.95s cubic-bezier(0.22, 1, 0.36, 1),
        filter 0.75s ease;
    will-change: opacity, transform, filter;
}

body:not(.home-entered) header.glass-nav,
body:not(.home-entered) .top-section,
body:not(.home-entered) .container1,
body:not(.home-entered) .container2,
body:not(.home-entered) .collapsible-container,
body:not(.home-entered) .container3,
body:not(.home-entered) .course-table-container,
body:not(.home-entered) .Friendship-Links-container,
body:not(.home-entered) .Copyright-container {
    opacity: 0;
    transform: translateY(18px) scaleY(0.985);
    filter: blur(5px);
    pointer-events: none;
}

body.home-entered header.glass-nav {
    transition-delay: 0ms;
}

body.home-entered .top-section {
    transition-delay: 90ms;
}

body.home-entered .container1 {
    transition-delay: 160ms;
}

body.home-entered .container2 {
    transition-delay: 240ms;
}

body.home-entered .collapsible-container {
    transition-delay: 320ms;
}

body.home-entered .container3 {
    transition-delay: 400ms;
}

body.home-entered .course-table-container {
    transition-delay: 480ms;
}

body.home-entered .Friendship-Links-container {
    transition-delay: 560ms;
}

body.home-entered .Copyright-container {
    transition-delay: 640ms;
}
/* ---加载动画样式--- */
.loader-container {
    position: fixed; /* 固定定位，全屏覆盖 */
    top: 0;
    left: 0;
    width: 100%; /* 宽度占满屏幕 */
    height: 100vh; /* 高度占满视口 */
    background: #e7edf7; /* 先用和主背景一致的底色，避免开头闪白 */
    display: flex; /* 使用flex布局 */
    justify-content: center; /* 垂直居中 */
    align-items: center; /* 水平居中 */
    z-index: 9999; /* 层级最高，确保在最上层显示 */
    overflow: hidden;
    opacity: 0;
    animation: loader-container-fade 0.45s ease forwards;
    transition: opacity 0.5s ease; /* 透明度变化的过渡动画，用于加载完成后隐藏 */
}

.loader-container::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("../assets/bg.webp");
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    filter: blur(5px);
    transform: scale(1.05);
    transform-origin: center;
    pointer-events: none;
    z-index: 0;
    contain: layout paint;
    opacity: 1;
}

.loader-panel {
    position: relative;
    z-index: 1;
    max-width: 100%;
    width: 70%;
    min-width: 200px;
    margin: 0 auto;
    padding: 26px 0 32px;
    border-radius: 26px;
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(255, 255, 255, 0.62);
    box-shadow: 0 18px 44px rgba(17, 24, 39, 0.12);
    backdrop-filter: blur(12px) saturate(118%);
    -webkit-backdrop-filter: blur(12px) saturate(118%);
    text-align: center;
}

.loader-eyebrow {
    margin: 0 0 10px;
    color: #667084;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.14em;
}

.loader-title {
    margin: 0;
    color: #1d2433;
    font-size: 27px;
    font-weight: 600;
    letter-spacing: 0.01em;
}

.loader-subtext {
    margin: 12px 0 0;
    color: #667084;
    font-size: 14px;
    line-height: 1.75;
}

.loader-progress-wrap {
    margin: 24px auto 0;
    width: 80%;
    opacity: 0;
    transform: translateY(6px);
    animation: loader-progress-fade 0.45s ease 0.12s forwards;
}

.loader-progress-track {
    width: 100%;
    height: 9px;
    border-radius: 999px;
    background: rgba(228, 234, 242, 0.64);
    overflow: hidden;
    box-shadow: inset 0 1px 2px rgba(31, 41, 55, 0.05);
}

.loader-progress-fill {
    width: 62%;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, rgba(75, 132, 216, 0.78), rgba(138, 177, 228, 0.72));
    box-shadow: 0 6px 14px rgba(75, 132, 216, 0.08);
}

.loader-progress-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 9px;
    color: #667084;
    font-size: 12px;
    letter-spacing: 0.04em;
}

.loader-footer-note {
    margin-top: 16px;
    color: #7a8494;
    font-size: 12px;
    letter-spacing: 0.04em;
}

@keyframes loader-progress-fade {
    from {
        opacity: 0;
        transform: translateY(6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 加载加载容器额外优化：减少对LCP元素的阻塞 */
.loader-container {
    /* 确保加载动画在LCP元素绘制前完成或快速隐藏 */
    transition: opacity 0.3s ease-out; /* 缩短过渡时间，加快消失速度 */
}

@keyframes loader-container-fade {
    from { opacity: 0; }
    to { opacity: 1; }
}
/* ===== 仅追加：课表容器样式（保持原有风格） ===== */
.course-table-container {
    position: relative;
    max-width: 100%;
    width: 70%;
    min-width: 200px;
    margin: 0 auto 20px;
    background: rgba(255, 255, 255, 0.7);
    box-shadow: 0 0 12px rgba(0, 0, 0, 0.15);
    border-radius: 10px;
    padding: 20px 0 36px;
    transition: all 0.3s ease;
}

.course-status-legend {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    margin: 18px auto 0;
    padding: 0 14px;
    color: #5b6470;
    font-size: 12px;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 3px 11px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
}

.status-pill-course {
    background: rgba(52, 152, 219, 0.28);
    color: #1769aa;
    box-shadow: inset 0 0 0 1px rgba(52, 152, 219, 0.42);
}

.status-pill-free {
    background: rgba(128, 128, 128, 0.18);
    color: #5b6470;
    box-shadow: inset 0 0 0 1px rgba(128, 128, 128, 0.3);
}

.holiday-note {
    flex-basis: 100%;
    text-align: center;
}

.current-course-status {
    width: fit-content;
    margin: 10px auto 0;
    padding: 4px 12px;
    border-radius: 999px;
    color: #1769aa;
    font-size: 12px;
    font-weight: 700;
}

.current-course-status.no-course {
    color: #5b6470;
}

.course-table-container h3 {
    text-align: center;
    font-size: 20px;
    margin: 0 0 10px;
    color: #1f2937;
}

.timetable-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    color: #334155;
    table-layout: fixed;
}

.timetable-table thead th {
    padding: 12px 8px;
    background: #f5f7fa;
    border-bottom: 2px solid #e5e7eb;
    color: #1f2937;
    font-weight: 700;
    text-align: center;
    white-space: nowrap;
}

.timetable-table tbody td {
    padding: 12px 8px;
    border-bottom: 1px solid #edf0f4;
    text-align: center;
    vertical-align: middle;
    line-height: 1.5;
}

.timetable-table tbody td:first-child {
    font-weight: 700;
    background: rgba(245, 247, 250, 0.7);
    white-space: nowrap;
}

/* 让课表更统一，不影响其他部位 */
.table-wrap {
    overflow-x: auto;
}

/* ---导航页样式--- */
header {
    position: fixed; /* 固定定位，不随页面滚动 */
    z-index: 9998; /* 层级次高，确保在内容上方但低于加载动画 */
    top: 10px; /* 距离顶部10px */
    left: 6px; /* 距离左侧6px */
    right: 6px; /* 距离右侧6px */
    width: 92%; /* 宽度为92% */
    min-width: 200px; /* 最小宽度200px，防止过窄 */
    margin: 0 auto; /* 水平居中 */
    height: 55px; /* 高度55px */
    border-radius: 10px; /* 圆角10px */
    background-color: #42b1f1; /* 背景色为浅蓝色 */
    border-bottom: 0px solid #2C9AB7; /* 底部边框为0，即无下边框 */
    opacity: 1; /* 完全不透明 */
}

/* 网站logo样式 */
.logo {
    color: #ffffff; /* 文字颜色为白色 */
    font-weight: bold; /* 字体加粗 */
    width: 20%; /* 宽度占20% */
    float: left; /* 左浮动 */
    margin-top: 15px; /* 上外边距15px */
    margin-left: 25px; /* 左外边距25px */
    letter-spacing: 0px; /* 字间距0px */
    margin-bottom: 20px; /* 下外边距20px */
    transition: all 0.3s linear; /* 所有属性变化时的过渡动画，0.3秒线性过渡 */
}

/* logo hover效果 */
.logo:hover {
    color: #3498db; /* 鼠标悬停时文字颜色变为深蓝色 */
}

/* 导航栏样式 */
nav {
    float: right; /* 右浮动 */
    width: 50%; /* 宽度占50% */
    text-align: right; /* 文本右对齐 */
    margin-right: 25px; /* 右外边距25px */
}

/* 导航列表样式 */
header nav ul {
    list-style: none; /* 去除列表默认样式（圆点） */
    float: right; /* 右浮动 */
}

/* 导航列表项样式 */
nav ul li {
    float: left; /* 左浮动，使列表项横向排列 */
    color: #FFFFFF; /* 文字颜色为白色 */
    font-size: 14px; /* 字体大小14px */
    text-align: left; /* 文本左对齐 */
    margin-right: 20px; /* 右外边距20px，项之间间距 */
    letter-spacing: 2px; /* 字间距2px */
    font-weight: bold; /* 字体加粗 */
    transition: all 0.3s linear; /* 所有属性变化时的过渡动画 */
    white-space: nowrap; /* 文本不换行，确保内容在一行显示 */
}

/* 导航链接样式 */
ul li a {
    color: #FFFFFF; /* 链接文字颜色为白色 */
    text-decoration: none; /* 去除链接下划线 */
    white-space: nowrap; /* 链接文本不换行 */
}

/* 导航项hover效果 */
ul li:hover a {
    color: #3498db; /* 鼠标悬停时链接文字颜色变为深蓝色 */
}

/* 响应式适配：屏幕宽度小于等于768px时 */
@media (max-width: 768px) {
    header nav ul {
        flex-direction: column; /* 列表项改为垂直排列 */
        gap: 10px; /* 项之间垂直间距10px */
    }
}
/* 容器通用样式：包括多个容器和友情链接容器 */
.container,
.container1,
.container2,
.container3,
.container4,
.Friendship-Links-container {
    position: relative; /* 相对定位，作为子元素绝对定位的参考 */
    max-width: 100%; /* 最大宽度不超过父元素 */
    min-width: 200px; /* 最小宽度200px，确保小屏幕下不致过窄 */
    width: 70%; /* 容器宽度为父元素的70% */
    height: 150px; /* 容器默认高度150px */
    background: rgba(255, 255, 255, 0.7); /* 白色背景，70%透明度 */
    box-shadow: 0 0 12px rgba(0, 0, 0, 0.15); /* 轻微阴影，增强立体感 */
    border-radius: 10px; /* 10px圆角边框 */
    margin: 0 auto; /* 水平居中 */
    padding: 20px 0; /* 上下内边距20px，左右0 */
    padding-bottom: 20px; /* 底部内边距20px，控制内容与底部距离 */
    margin-bottom: 20px; /* 底部外边距20px，容器间垂直间隔 */
    transition: all 1s ease; /* 所有属性变化时的过渡动画，1秒缓动 */
    transition: opacity 0.4s ease; /* 透明度过渡动画，0.4秒缓动（注：与上一行transition有重复，后者会覆盖前者相同属性） */
    z-index: 0; /* 层级0，确保在背景之上、其他元素之下 */
}

/* 碰撞时的样式（通过JS动态添加此类） */
.colliding {
    opacity: 0.4 !important; /* 强制半透明效果，优先级最高 */
}

/* 给.container1添加防收缩占位伪元素 */
.container1::before {
    content: ""; /* 空内容 */
    display: inline-block; /* 行内块级元素，可设置宽高 */
    height: 45px; /* 高度与打字元素行高一致，防止布局跳动 */
    width: 1px; /* 宽度1px，不占用过多空间 */
    visibility: hidden; /* 隐藏但保留占位空间 */
}

/* 第一个容器样式（主要内容区） */
.container1 {
    height: auto; /* 高度自动适应内容 */
    min-height: 820px; /* 最小高度820px，避免内容过少时容器过矮 */
    margin-top: 100px; /* 顶部外边距100px，与导航栏保持距离 */
    padding: 12px 0; /* 上下内边距12px，给内部元素空间 */
    text-align: center; /* 内部元素水平居中 */
    position: relative; /* 相对定位，作为子元素定位参考 */
}

/* 光标闪烁动画定义 */
@keyframes blink {
    50% { border-color: transparent; } /* 动画进行到50%时，边框颜色变为透明 */
}

/* 头像容器样式 */
.avatra-img {
    width: 150px; /* 容器宽度150px */
    height: 150px; /* 容器高度150px */
    border-radius: 50%; /* 50%圆角，形成圆形 */
    border: 5px solid #ffffff; /* 5px白色边框 */
    background-color: #f5f5f5; /* 浅灰色背景，图片加载前显示 */
    box-shadow:
        0 16px 36px rgba(17, 24, 39, 0.18),
        0 2px 6px rgba(17, 24, 39, 0.08); /* 更明显的悬浮阴影 */
    display: block; /* 块级元素，可设置margin */
    margin: 0 auto; /* 水平居中 */
    margin-top: -30px; /* 向上偏移30px，突出显示 */
}

/* 图片容器内图片样式 */
.img-container img {
    width: 200px; /* 图片宽度200px */
    height: 200px; /* 图片高度200px */
    border-radius: 50%; /* 50%圆角，裁剪为圆形 */
    object-fit: cover; /* 保持图片比例，裁剪多余部分 */
}

/* 第一个容器内段落样式 */
.container1 p {
    text-align: center; /* 文本居中 */
    padding-top: 1px; /* 顶部内边距1px */
    font-size: 18px; /* 字体大小18px */
}

/* 第一个容器内链接样式 */
.container1 a {
    text-align: center; /* 链接文本居中 */
}

/* 第一个容器内一级标题样式 */
.container1 h1 {
    text-align: center; /* 标题居中 */
    color: #3ccaf5; /* 标题颜色为浅蓝色 */
}

/* 第一个容器内三级标题样式 */
.container1 h3 {
    text-align: center; /* 标题居中 */
    font-size: 20px; /* 字体大小20px */
    margin-bottom: -25px; /* 底部外边距-25px，向上偏移 */
    margin-top: -20px; /* 顶部外边距-20px，向上偏移 */
}

/* 第一个容器内链接的悬停状态 */
.container1 a:hover {
    color: #3498db; /* 悬停时颜色变为深蓝色 */
    transition: all 0.2s linear; /* 所有属性变化过渡，0.2秒线性过渡 */
}

/* 第二个容器样式 */
.container2 {
    height: 100px; /* 高度100px */
    min-height: 100px; /* 最小高度100px，避免内容过少时收缩 */
    margin-top: 20px; /* 顶部外边距20px */
    padding: 10px 0; /* 上下内边距10px */
    text-align: center; /* 内部元素居中 */
    position: relative; /* 相对定位 */
    background: rgba(231, 80, 80, 0.8); /* 浅红色背景，80%透明度 */
    border: 2px solid #ff0000; /* 2px红色实线边框 */
}

/* 第二个容器内段落样式 */
.container2 p {
    text-align: justify; /* 文本两端对齐 */
    margin-left: 15px; /* 左外边距15px */
}

/* 第二个容器内三级标题样式 */
.container2 h3 {
    text-align: justify; /* 文本两端对齐 */
    font-size: 20px; /* 字体大小20px */
    margin-bottom: -25px; /* 底部外边距-25px，向上偏移 */
    margin-top: 10px; /* 顶部外边距10px */
    margin-left: 25px; /* 左外边距25px */
}

/* 第三个容器样式 */
.container3 {
    height: auto; /* 高度自动适应内容 */
}

/* 第三个容器和友情链接容器内三级标题样式 */
.container3 h3,
.Friendship-Links-container h3 {
    text-align: justify; /* 文本两端对齐 */
    font-size: 20px; /* 字体大小20px */
    margin-bottom: -25px; /* 底部外边距-25px，向上偏移 */
    margin-top: 10px; /* 顶部外边距10px */
    margin-left: 25px; /* 左外边距25px */
}


/* 最后一个容器的底部外边距 */
.container:last-child {
    margin-bottom: 20px; /* 底部外边距20px，与下方元素保持距离 */
}

/* 实线分隔线样式 */
.divider-solid {
    width: 80%; /* 宽度80% */
    height: 2px; /* 高度2px，线的粗细 */
    background: #3498db; /* 背景色为深蓝色，即线的颜色 */
    margin: 0 auto; /* 水平居中 */
    margin-top: 10px; /* 顶部外边距10px */
    margin-bottom: 10px; /* 底部外边距10px */
}

/* 打字元素样式（仅针对.container1中的#type-text） */
.container1 #type-text {
    font-size: 20px; /* 字体大小20px */
    font-family: "Microsoft YaHei", sans-serif; /* 字体为微软雅黑，无衬线字体 */
    color: #333; /* 文本颜色为深灰色 */
    border-right: 2px solid #444; /* 右侧2px深灰色边框，模拟光标 */
    display: inline-block; /* 行内块级元素 */
    animation: blink 0.8s infinite; /* 应用blink动画，0.8秒一次，无限循环 */
    line-height: 45px; /* 行高45px */
    white-space: nowrap; /* 文本不换行 */
    vertical-align: top; /* 垂直对齐方式为顶部，与占位伪元素对齐 */
    z-index: 10; /* 层级10，确保在其他内容之上 */
}

/* 打字元素核心样式（通用） */
#type-text {
    font-size: 22px; /* 字体大小22px */
    font-family: "Microsoft YaHei", sans-serif; /* 字体为微软雅黑 */
    color: #333; /* 文本颜色深灰色 */
    border-right: 2px solid #444; /* 右侧光标边框 */
    display: inline-block; /* 行内块级 */
    animation: blink 1s infinite; /* 光标闪烁动画，1秒一次 */
    line-height: 45px; /* 行高45px */
    white-space: nowrap; /* 不换行 */
    z-index: 10; /* 层级10 */
}
/* 光标闪烁动画：模拟打字时的光标效果 */
@keyframes blink {
    50% { border-color: transparent; } /* 动画执行到50%时，边框颜色变为透明，实现光标闪烁 */
}

/* 优化横向滚动条样式（仅适用于WebKit内核浏览器，如Chrome、Safari） */
.type-container::-webkit-scrollbar {
    height: 4px; /* 滚动条高度（横向滚动条的垂直高度） */
}
.type-container::-webkit-scrollbar-thumb {
    background: #ddd; /* 滚动条滑块颜色为浅灰色 */
    border-radius: 2px; /* 滑块圆角2px，使其更圆润 */
}

/* 调整.container1内分割线的顶部间距 */
.container1 .divider-solid {
    margin-top: 70px; /* 顶部外边距70px，拉开与上方打字区域的距离 */
}

/* 圆形按钮样式（新增动画过渡） */
.round-btn {
    /* 保留原有样式 */
    width: auto;
    height: auto;
    border: none;
    border-radius: 0;
    background: transparent;
    padding: 10px 0;
    margin: 0;
    position: absolute;
    left: 50%;
    bottom: -10px; /* 与上方文字的距离 */
    transform: translateX(-50%);
    cursor: pointer;
    outline: none;
    
    /* 未hover时浮动动画 */
    animation: floatUpDown 2s ease-in-out infinite;
    
    /* 新增：按钮动画状态切换的过渡（关键） */
    transition: animation 0.3s ease;
}

/* 箭头样式（优化过渡） */
.arrow {
    font-size: 24px;
    color: #333;
    font-weight: normal;
    display: inline-block;
    /* 保留原有变换过渡，增加颜色过渡（可选） */
    transition: transform 0.3s ease, color 0.3s ease;
}

/* 上下浮动关键帧 */
@keyframes floatUpDown {
    0% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(-6px); }
    100% { transform: translateX(-50%) translateY(0); }
}

/* 箭头上下弹跳动画（备用） */
@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(5px); }
}

/* hover 状态：停止浮动 + 平滑过渡 */
.round-btn:hover {
    animation: none; /* 取消浮动动画，配合按钮的 transition 实现平滑停止 */
}

/* hover 时箭头效果（更平滑的变换） */
.round-btn:hover .arrow {
    transform: translateY(1px); /* 箭头向下微动 */
    color: #555; /* 颜色轻微加深（可选，增强反馈） */
}

/* 鼠标离开时，箭头恢复的过渡已通过 .arrow 的 transition 实现 */

/* 可折叠容器整体样式 */
.collapsible-container {
    background: rgba(255, 255, 255, 0.46); /* 更像 macOS 的半透明卡片 */
    border: 1px solid rgba(255, 255, 255, 0.58);
    border-radius: 42px; /* 更接近苹果的超大圆角 */
    box-shadow:
        0 18px 44px rgba(17, 24, 39, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.72);
    overflow: hidden; /* 溢出内容隐藏，确保圆角生效 */
    margin: 0 auto 20px; /* 水平居中，底部外边距20px */
    max-width: 100%; /* 最大宽度不超过父元素 */
    min-width: 200px; /* 最小宽度200px，小屏幕下不致过窄 */
    width: 70%; /* 容器宽度为父元素的70% */
    box-sizing: border-box;
    transition: opacity 0.4s ease; /* 透明度过渡，0.4秒缓动 */
    backdrop-filter: blur(16px) saturate(128%);
    -webkit-backdrop-filter: blur(16px) saturate(128%);
}

/* 可折叠容器标题栏样式 */
.collapsible-header {
    display: flex; /* 启用flex布局 */
    width: 100%;
    align-items: center; /* 子元素垂直居中 */
    justify-content: space-between; /* 子元素两端对齐，标题在左，指示器在右 */
    padding: 20px 22px; /* 更宽松的苹果风内边距 */
    border: 0;
    color: inherit;
    background: transparent;
    font: inherit;
    text-align: left;
    cursor: pointer; /* 鼠标悬浮时显示指针，提示可点击折叠/展开 */
    transition: background-color 0.2s ease; /* 背景色过渡，0.2秒缓动 */
}

.collapsible-header:focus-visible {
    outline: 3px solid rgba(52, 152, 219, 0.55);
    outline-offset: -3px;
}

/* 标题栏悬停效果 */
.collapsible-header:hover {
    background-color: rgba(255, 255, 255, 0.32); /* 更柔和的悬停反馈 */
}

/* 标题栏左侧内容容器 */
.header-content {
    display: flex; /* 启用flex布局 */
    align-items: center; /* 子元素垂直居中 */
    gap: 12px; /* 子元素之间间距12px */
}

/* 标题栏标题文本样式 */
.header-title {
    font-size: 13px; /* 更接近 macOS 的辅助标题 */
    font-weight: 600; /* 字体粗细 */
    color: #667084; /* 柔和的灰色 */
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

/* 三角形展开/折叠指示器样式 */
.triangle {
    width: 0;
    height: 0;
    /* 通过透明边框组合绘制三角形，此时为向上的三角形 */
    border-left: 6px solid transparent; /* 左侧透明边框 */
    border-right: 6px solid transparent; /* 右侧透明边框 */
    border-top: 6px solid #64748b; /* 顶部深色边框，形成三角形底边 */
    transition: transform 0.3s ease; /* 旋转过渡，0.3秒缓动（用于折叠时旋转） */
}

/* 箭头图标样式（通过CSS伪元素绘制） */
.chevron {
    width: 16px; /* 图标宽度16px */
    height: 16px; /* 图标高度16px */
    position: relative; /* 相对定位，作为伪元素定位参考 */
    color: #64748b; /* 图标颜色为深灰色 */
    transition: transform 0.3s ease; /* 旋转过渡，0.3秒缓动（用于折叠时旋转） */
}

/* 箭头右侧上半部分（通过伪元素before绘制） */
.chevron::before {
    content: ''; /* 伪元素必须有content属性，此处为空 */
    position: absolute; /* 绝对定位 */
    width: 8px; /* 线条宽度8px */
    height: 2px; /* 线条高度2px */
    background-color: currentColor; /* 背景色继承父元素color（深灰色） */
    transform: rotate(45deg); /* 旋转45度，形成箭头右上部分 */
    top: 7px; /* 距离顶部7px */
    right: 2px; /* 距离右侧2px */
}

/* 箭头右侧下半部分（通过伪元素after绘制） */
.chevron::after {
    content: ''; /* 伪元素空内容 */
    position: absolute; /* 绝对定位 */
    width: 8px; /* 线条宽度8px */
    height: 2px; /* 线条高度2px */
    background-color: currentColor; /* 背景色继承父元素color */
    transform: rotate(-45deg); /* 旋转-45度，形成箭头右下部分 */
    top: 7px; /* 距离顶部7px */
    right: 8px; /* 距离右侧8px */
}
/* 可折叠容器内容区域样式（核心控制展开/收起） */
.collapsible-content {
  max-height: 0; /* 初始高度为0，隐藏内容 */
  opacity: 0; /* 初始透明度为0，隐藏内容 */
  overflow: hidden; /* 溢出内容隐藏，避免内容泄露 */
  /* 过渡动画：高度和透明度同时变化，0.4秒缓动，实现平滑展开/收起 */
  transition: max-height 0.4s ease, opacity 0.4s ease;
}

/* 内容区域内部容器样式 */
.content-inner {
        padding: 20px 22px 22px; /* 更宽松的苹果风内边距 */
    border-top: 1px solid rgba(255, 255, 255, 0.56); /* 柔和分隔线 */
  transition: opacity 0.4s ease; /* 透明度过渡，0.4秒缓动 */
}

/* 内容区域文本样式 */
.content-text {
  color: #334155; /* 文本颜色为深灰色 */
  margin-bottom: 16px; /* 底部外边距16px，与下方元素间距 */
  line-height: 1.5; /* 行高1.5，提升文字可读性 */
}

.highlight-text {
  color: #000000; /* 文本颜色为黑色 */
  font-size: 14px; /* 字体大小14px */
  line-height: 1.5; /* 行高1.5 */
  text-align: center; /* 文本水平居中 */
}

/* 内容区域图片样式 */
.content-image {
  width: 100%; /* 图片宽度占满父容器 */
  height: auto; /* 高度自动，保持图片原始比例 */
        border-radius: 20px; /* 更圆润的圆角 */
  margin-top: 16px; /* 顶部外边距16px，与上方元素间距 */
}

/* 标签容器样式（横向排列） */
.tags-container {
    display: flex; /* 启用Flex布局，实现标签横向排列 */
    flex-wrap: wrap; /* 标签超出容器宽度时自动换行 */
    gap: 10px; /* 标签之间的间距 */
    padding: 0;
    margin: 12px 0 18px;
    background: transparent;
    border: none;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

/* 内容区域高亮块样式 */
.content-highlight {
    background: rgba(255, 255, 255, 0.66); /* 半透明高亮块 */
    padding: clamp(16px, 3vw, 20px); /* 随容器缩放的内边距 */
    border-radius: 32px; /* 苹果风大圆角 */
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 10px 24px rgba(17, 24, 39, 0.06);
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    margin-top: 8px;
    margin-bottom: 16px;
}

/* 单个标签样式 */
.tag-item {
    background: rgba(255, 255, 255, 0.72); /* 更像 macOS 的胶囊标签 */
    color: #334155; /* 文本颜色 */
    padding: 7px 14px; /* 内边距 */
    border-radius: 999px; /* 胶囊圆角 */
    border: 1px solid rgba(255, 255, 255, 0.7);
    box-shadow: 0 6px 14px rgba(17, 24, 39, 0.08);
    font-size: 13px; /* 字体大小 */
  white-space: nowrap; /* 标签文本不换行，保持完整性 */
  height: auto; /* 高度自动适应内容 */
}

/* 特殊标签样式：不会 */
.tag-item--unknown {
    background: rgba(255, 99, 99, 0.16); /* 更柔和的红色 */
    color: #b42318; /* 文本颜色 */
}

/* 特殊标签样式：了解 */
.tag-item--familiar {
    background: rgba(255, 214, 102, 0.22); /* 更柔和的黄色 */
    color: #9a6700; /* 文本颜色 */
}

/* 特殊标签样式：应用 */
.tag-item--applied {
    background: rgba(54, 197, 98, 0.18); /* 更柔和的绿色 */
    color: #166534; /* 文本颜色 */
}

/* 特殊标签样式：精通 */
.tag-item--proficient {
    background: linear-gradient(90deg, rgba(79, 172, 254, 0.22) 0%, rgba(0, 242, 254, 0.18) 100%); /* 更轻的渐变 */
    color: #1d4ed8;
}

/* 垂直线条样式 */
.vertical-line {
  border: none; /* 清除默认边框 */
  width: 80%; /* 宽度为80% */
  height: 2px; /* 高度2px，即线条粗细 */
  background-color: #3498db; /* 线条颜色为深蓝色 */
  margin: 20px auto; /* 上下外边距20px，水平居中 */
}

/* 另一个标签容器样式（横向排列） */
.tag-container {
  display: flex; /* 启用Flex布局，横向排列 */
  flex-wrap: wrap; /* 超出宽度自动换行 */
  gap: 15px; /* 标签之间间距15px */
  margin: 16px 0; /* 上下外边距16px */
  margin-left: 15px; /* 左外边距15px，与左侧保持距离 */
  white-space: nowrap; /* 标签文本不换行 */
  height: auto; /* 高度自动适应 */
}

/* 调整container3内h3标题的间距与对齐 */
.container3 h3 {
  margin-top: 0; /* 顶部外边距为0，贴近上方元素（如需间距可设正值） */
  text-align: center; /* 文本水平居中 */
}

/* 调整container3内p段落的间距与样式 */
.container3 p {
  margin-top: 8px; /* 顶部外边距8px，与上方h3保持间距 */
  line-height: 1.6; /* 行高1.6，优化可读性 */
  text-align: center; /* 文本水平居中 */
}

/* 表格核心样式（适配原有视觉风格） */
.itinerary-table {
    width: 100%;
    min-width: 0;
    border-collapse: separate;
    border-spacing: 0;
    color: #26364a;
    font-size: 13px;
}

.itinerary-table thead th {
    height: 42px;
    padding: 8px 6px;
    border: 0;
    border-right: 1px solid rgba(255, 255, 255, 0.22);
    background: #3f70bd;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    text-align: center;
}

.itinerary-table tbody td {
    height: 54px;
    padding: 7px 8px;
    border: 0;
    border-right: 1px solid #e1e7ef;
    border-bottom: 1px solid #e1e7ef;
    background: #fff;
    line-height: 1.4;
    text-align: center;
    vertical-align: middle;
}

.itinerary-table thead th:last-child,
.itinerary-table tbody td:last-child {
    border-right: 0;
}

.itinerary-table tbody tr:last-child td {
    border-bottom: 0;
}

@media (max-width: 768px) {
    .itinerary-table thead th,
    .itinerary-table tbody td {
        padding-right: 4px;
        padding-left: 4px;
        font-size: 12px;
    }
}
/* 新增：状态标签样式（区分不同状态，可选） */
.status {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 14px;
    color: #fff;
}
/* 进行中状态（渐变色）*/
.status.ongoing{
    background-color:#20ee76;
}
/* 拟定中状态（蓝色） */
.status.pending {
    background-color:#db890d;
}
/* 已确认状态（绿色） */
.status.confirmed {
    background-color:#4299e1;
}
/* 已取消状态（红色，备用） */
.status.cancelled {
    background-color: #ef4444;
}
/* 已完成状态 */
.status.completed {
    background-color: #ffbf0e;
}

/* 友情链接容器内h3标题样式 */
.Friendship-Links-container h3 {
  text-align: center; /* 文本水平居中 */
  margin-top: 0; /* 顶部外边距为0，贴近上方元素 */
}
/* 友情链接列表容器 */
.friend-links-list {
    text-align: center; /* 使内部链接容器整体居中 */
    padding: 15px 0; /* 与上下元素保持距离 */
}

/* 单个链接容器 - 控制间距 */
.friend-link-item {
    display: inline-block; /* 使多个链接横向排列 */
    margin: 0 10px 15px; /* 左右间距10px，上下间距15px */
    border-radius: 10px; /* 10px圆角边框 */
    background-color: #e0f2fe; /* 标签背景色为浅蓝色 */
    
}

/* 链接样式 */
.friend-link {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    color: #333;
    padding: 5px 10px;
    border-radius: 10px;
    transition: background-color 0.3s;
}

.friend-link:hover {
    background-color: #7ebfeb;; /* 鼠标悬停时文字颜色变为深蓝色 */
    border-radius: 10px; /* 10px圆角边框 */
}

/* 图标样式 */
.link-favicon {
    width: 16px;
    height: 16px;
    margin-right: 8px;
    vertical-align: middle;
    border-radius: 4px;
    box-shadow:
        0 4px 10px rgba(17, 24, 39, 0.18),
        0 1px 2px rgba(17, 24, 39, 0.08);
}

/* 版权文本样式（渐变色文字） */
.Copyright {
  /* 横向渐变色背景：从蓝色到青绿色再到橙色 */
  background: linear-gradient(90deg, #165DFF, #36d3cb, #eca522);
  background-image: linear-gradient(90deg, #165DFF, #36d3cb, #eca522); /* 重复设置，确保兼容性 */
  background-repeat: no-repeat; /* 防止渐变重复 */
  
  /* 文字裁剪：背景仅作用于文字区域（兼容多浏览器） */
  -webkit-background-clip: text;
  -moz-background-clip: text;
  background-clip: text;
  
  /* 文字透明：显示背景渐变颜色（兼容多浏览器） */
  color: transparent;
  -webkit-text-fill-color: transparent;
  -moz-text-fill-color: transparent;
  
  /* 文字基础样式 */
  font-weight: 700; /* 字体加粗 */
  font-family: "Segoe UI", Arial, sans-serif; /* 指定字体 */
  display: inline-block; /* 确保背景仅覆盖文字区域 */
}

/* 版权容器样式 */
.Copyright-container {
  width: 100%; /* 宽度占满父容器 */
  display: flex; /* 启用Flex布局 */
  flex-direction: column; /* 子元素垂直排列 */
  align-items: center; /* 子元素水平居中 */
}

/* 当前正在进行的课程 */
.timetable-table td.current-course {
    background: rgba(52, 152, 219, 0.28) !important;
    color: #123b5d !important;
    font-weight: 700;
    box-shadow:
        inset 0 0 0 2px rgba(52, 152, 219, 0.48),
        inset 0 0 18px rgba(52, 152, 219, 0.16);
    transition: background-color 0.25s ease, box-shadow 0.25s ease;
}

.timetable-table td.current-course::after {
    content: "进行中";
    display: block;
    margin-top: 3px;
    color: #1769aa;
    font-size: 11px;
    font-weight: 700;
}

/* ========== 先删除原有加载动画样式（以下整段删掉） ========== */
/* ---加载动画样式--- */
.loader-container {
    position: fixed; /* 固定定位，全屏覆盖 */
    top: 0;
    left: 0;
    width: 100%; /* 宽度占满屏幕 */
    height: 100vh; /* 高度占满视口 */
    background: rgba(255, 255, 255, 0.18); /* 更接近首页内容卡片的浅底色 */
    display: flex; /* 使用flex布局 */
    flex-direction: column; /* 子元素垂直排列 */
    justify-content: center; /* 垂直居中 */
    align-items: center; /* 水平居中 */
    z-index: 9999; /* 层级最高，确保在最上层显示 */
    transition: opacity 0.5s ease; /* 透明度变化的过渡动画，用于加载完成后隐藏 */
}

/* 加载动画-圆形旋转动画样式（优化LCP影响） */
.loader {
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid #3498db;
    border-radius: 50%;
    /* 优化动画性能：使用transform-origin确保旋转中心正确，避免布局偏移 */
    transform-origin: center;
    animation: spin 1s linear infinite;
    /* 标记为低优先级动画，不阻塞主线程 */
    will-change: transform;
}

/* 加载动画文本样式 */
.loader-text {
    margin-top: 20px;
    color: #666;
    font-size: 16px;
    /* 文本渲染优化：避免加载时的字体闪烁 */
    font-display: optional;
}

/* 旋转动画定义（优化性能） */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
    /* 仅使用transform属性，避免触发重排重绘，提升动画性能 */
}

/* 加载加载容器额外优化：减少对LCP元素的阻塞 */
.loader-container {
    /* 确保加载动画在LCP元素绘制前完成或快速隐藏 */
    transition: opacity 0.3s ease-out; /* 缩短过渡时间，加快消失速度 */
}
/* ========== 加载动画样式删除结束 ========== */

/* ========== 添加渐入动画核心样式 ========== */
/* 1. 定义渐入动画：透明度从0到1 + 向上移动归位 */
@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(20px); /* 初始向上偏移20px */
    }
    100% {
        opacity: 1;
        transform: translateY(0); /* 归位 */
    }
}

/* 2. 全局渐入动画通用类（所有需要渐入的元素都加这个类） */
.fade-in-element {
    opacity: 0; /* 初始透明 */
    animation: fadeInUp 0.8s ease forwards; /* 动画时长0.8s，结束后保持最终状态 */
    will-change: opacity, transform; /* 优化动画性能 */
}

/* 3. 给不同元素设置延迟，形成层次感（可根据需求调整延迟时间） */
/* 导航栏：最先出现 */
.header {
    animation-delay: 0.1s;
}
/* 个人信息容器：延迟0.3s */
.container1 {
    animation-delay: 0.3s;
}
/* 网站建设提示容器：延迟0.6s */
.container2 {
    animation-delay: 0.6s;
}
/* 技术栈折叠容器：延迟0.9s */
#tech-stack-container {
    animation-delay: 0.9s;
}
/* 更新日志折叠容器：延迟1.2s */
#changelog-container {
    animation-delay: 1.2s;
}
/* 近期行程容器：延迟1.5s */
.container3 {
    animation-delay: 1.5s;
}
/* 友情链接容器：延迟1.8s */
.Friendship-Links-container {
    animation-delay: 1.8s;
}
/* 版权信息：最后出现（延迟2.1s） */
.Copyright-container {
    animation-delay: 2.1s;
}

/* 4. 文字/小元素额外细化（可选，让文字渐入更细腻） */
.container1 h1, .container1 h3, .container1 p {
    animation: fadeInUp 0.8s ease forwards;
    opacity: 0;
}
/* 头像单独延迟 */
.avatra-img {
    animation: fadeInUp 0.8s ease forwards;
    opacity: 0;
    animation-delay: 0.4s;
}
/* 个人信息内文字依次延迟 */
.container1 h1 { animation-delay: 0.5s; }
.container1 #type-text { animation-delay: 0.7s; }
.container1 h3 { animation-delay: 0.9s; }
.container1 p:nth-child(1) { animation-delay: 1.0s; }
.container1 p:nth-child(2) { animation-delay: 1.1s; }
/* 其他文字可按需添加 */

/* ===== 让导航栏真正透，不要整块毛玻璃 ===== */
header.glass-nav {
    position: fixed !important;
    top: 14px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    width: min(92vw, 1160px) !important;
    height: 62px !important;
    padding: 0 18px !important;
    border-radius: 999px !important;
    border: 1px solid rgba(255,255,255,0.18) !important;
    background: rgba(255,255,255,0.02) !important;
    backdrop-filter: blur(10px) saturate(160%) brightness(1.12) !important;
    -webkit-backdrop-filter: blur(10px) saturate(160%) brightness(1.12) !important;
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.32),
        inset 0 -1px 0 rgba(255,255,255,0.05),
        0 12px 28px rgba(15, 23, 42, 0.06) !important;
    overflow: hidden !important;
    isolation: isolate !important;
    z-index: 9998 !important;
}

/* 顶部折射高光 */
header.glass-nav::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background:
        radial-gradient(130% 180% at 18% 14%, rgba(255,255,255,0.78), transparent 24%),
        radial-gradient(140% 200% at 80% 100%, rgba(125,211,252,0.18), transparent 30%),
        linear-gradient(120deg,
            rgba(255,255,255,0.10) 0%,
            rgba(255,255,255,0.04) 24%,
            rgba(255,255,255,0.00) 52%,
            rgba(255,255,255,0.08) 100%);
    opacity: 0.9;
    pointer-events: none;
    z-index: 0;
}

/* 边缘轻微亮线，像玻璃折射 */
header.glass-nav::after {
    content: "";
    position: absolute;
    left: 5%;
    right: 8%;
    top: -25%;
    height: 75%;
    border-radius: 50%;
    background: linear-gradient(90deg,
        rgba(255,255,255,0),
        rgba(255,255,255,0.72) 18%,
        rgba(255,255,255,0.14) 30%,
        rgba(255,255,255,0) 60%);
    filter: blur(14px);
    transform: rotate(-8deg) skewX(-16deg);
    opacity: 0.8;
    pointer-events: none;
    z-index: 1;
}

header.glass-nav .logo,
header.glass-nav nav.glass-nav-menu,
header.glass-nav .glass-nav-toggle {
    position: relative;
    z-index: 2;
}

header.glass-nav .glass-nav-toggle {
    display: none;
}

header.glass-nav .logo {
    float: left !important;
    margin: 0 0 0 12px !important;
    line-height: 62px !important;
    color: rgba(255, 255, 255, 0.96) !important;
    font-weight: 600 !important;
    letter-spacing: -0.03em !important;
    font-family: "SF Pro Display", "SF Pro Text", "SFUIText", "PingFang SC", "Helvetica Neue", Arial, sans-serif !important;
    font-size: 0.95rem !important;
    text-shadow: none !important;
}

header.glass-nav .logo a {
    color: rgba(255, 255, 255, 0.96) !important;
    text-decoration: none !important;
}

header.glass-nav nav.glass-nav-menu {
    float: right !important;
    margin: 0 10px 0 0 !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

header.glass-nav nav.glass-nav-menu ul {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    height: 62px !important;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
}

header.glass-nav nav.glass-nav-menu ul li {
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
}

header.glass-nav nav.glass-nav-menu ul li a {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 36px;
    padding: 0 16px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.10);
    background: rgba(255,255,255,0.02);
    color: rgba(31, 41, 55, 0.72) !important;
    font-family: "SF Pro Display", "SF Pro Text", "SFUIText", "PingFang SC", "Helvetica Neue", Arial, sans-serif !important;
    font-weight: 500 !important;
    letter-spacing: -0.015em !important;
    font-size: 0.83rem !important;
    text-shadow: none !important;
    transition: all 0.2s ease;
}

header.glass-nav nav.glass-nav-menu ul li a:hover,
header.glass-nav nav.glass-nav-menu ul li a:focus-visible {
    background: rgba(255,255,255,0.08);
    border-color: rgba(255,255,255,0.18);
    color: rgba(17, 24, 39, 0.92) !important;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.30);
}

@media (max-width: 768px) {
    header.glass-nav {
        width: min(94vw, 1100px) !important;
        height: auto !important;
        min-height: 62px !important;
        border-radius: 22px !important;
    }

    header.glass-nav nav.glass-nav-menu ul {
        flex-wrap: wrap !important;
        justify-content: center !important;
        height: auto !important;
        padding: 6px 0 !important;
    }
}

/* ===== 全部导航栏文字统一 iOS 化 ===== */
header.glass-nav .logo,
header.glass-nav .logo a,
header.glass-nav nav.glass-nav-menu ul li a,
header.glass-nav nav.glass-nav-menu ul li a:hover,
header.glass-nav nav.glass-nav-menu ul li a:focus-visible {
    font-family: "SF Pro Display", "SF Pro Text", "SFUIText", "PingFang SC", "Helvetica Neue", Arial, sans-serif !important;
    letter-spacing: -0.02em !important;
    text-shadow: none !important;
}

header.glass-nav .logo {
    float: left !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    height: 62px !important;
    margin: 0 !important;
    margin-left: 20px !important;
    padding: 0px !important;
    color: rgba(255, 255, 255, 0.96) !important;
    font-family: "SF Pro Display", "SF Pro Text", "SFUIText", "PingFang SC", "Helvetica Neue", Arial, sans-serif !important;
    font-weight: 500 !important;
    letter-spacing: -0.02em !important;
    line-height: 1 !important;
    text-shadow: none !important;
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    flex-shrink: 0 !important;
}

header.glass-nav .logo a {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    height: 100% !important;
    color: rgba(255, 255, 255, 0.96) !important;
    text-decoration: none !important;
    font-family: inherit !important;
    font-size: inherit !important;
    font-weight: inherit !important;
    letter-spacing: inherit !important;
}

header.glass-nav nav.glass-nav-menu {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    margin: 0 !important;
    padding: 0 !important;
    flex-shrink: 0 !important;
}

header.glass-nav nav.glass-nav-menu ul {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    height: 62px !important;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
}

header.glass-nav nav.glass-nav-menu ul li a {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    height: 36px !important;
    padding: 0 16px !important;
    border-radius: 999px !important;
    background: rgba(255,255,255,0.03) !important;
    border: 1px solid rgba(255,255,255,0.10) !important;
    color: rgba(255, 255, 255, 0.9) !important;
    font-family: "SF Pro Display", "SF Pro Text", "SFUIText", "PingFang SC", "Helvetica Neue", Arial, sans-serif !important;
    font-size: 0.82rem !important;
    font-weight: 500 !important;
    letter-spacing: -0.02em !important;
    line-height: 1 !important;
    text-shadow: none !important;
    box-shadow: none !important;
}

header.glass-nav nav.glass-nav-menu ul li a:hover,
header.glass-nav nav.glass-nav-menu ul li a:focus-visible {
    color: rgba(255, 255, 255, 1) !important;
    background: rgba(255,255,255,0.08) !important;
    border-color: rgba(255,255,255,0.18) !important;
}

/* Apple 风格内容容器圆角统一 */
.container,
.container1,
.container2,
.container3,
.container4,
.collapsible-container,
.course-table-container,
.Friendship-Links-container,
.Copyright-container {
    border-radius: 24px !important;
}

@media (max-width: 768px) {
    .container,
    .container1,
    .container2,
    .container3,
    .container4,
    .collapsible-container,
    .course-table-container,
    .Friendship-Links-container,
    .Copyright-container {
        border-radius: 20px !important;
    }
}

/* 统一课表、近期行程和友情链接的标题与分隔线 */
.container3 > h3,
.course-table-container > h3,
.Friendship-Links-container > h3 {
    margin: 0 0 10px !important;
    text-align: center !important;
    font-size: 20px !important;
    color: #1f2937 !important;
}

.container3 .vertical-line,
.course-table-container .vertical-line,
.Friendship-Links-container .vertical-line {
    width: 80% !important;
    height: 2px !important;
    margin: 20px auto !important;
    border: none !important;
    background-color: #3498db !important;
}

/* =========================================================
   透明 Liquid Glass 导航栏
   中间保持透明，反射、折射和立体感集中在边缘
   ========================================================= */
header.glass-nav {
    background: transparent !important;
    border: 1px solid transparent !important;
    box-shadow:
        0 18px 28px rgba(22, 75, 125, 0.18),
        0 3px 8px rgba(255, 255, 255, 0.18),
        inset 0 1px 0 rgba(255, 255, 255, 0.7),
        inset 0 -1px 0 rgba(255, 255, 255, 0.24) !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    isolation: isolate !important;
    overflow: hidden !important;
}

/* 透明轮廓：只绘制边缘，不覆盖中间内容 */
header.glass-nav::before {
    content: "";
    position: absolute;
    inset: 0;
    padding: 1px;
    border-radius: inherit;
    background:
        linear-gradient(115deg,
            rgba(255,255,255,0.92) 0%,
            rgba(255,255,255,0.20) 8%,
            transparent 18%,
            transparent 76%,
            rgba(255,255,255,0.62) 92%,
            rgba(255,255,255,0.94) 100%);
    -webkit-mask:
        linear-gradient(#000 0 0) content-box,
        linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask:
        linear-gradient(#000 0 0) content-box,
        linear-gradient(#000 0 0);
    mask-composite: exclude;
    pointer-events: none;
    z-index: 0;
    animation: liquid-edge-shift 7s ease-in-out infinite alternate;
}

/* 反射带：仅沿顶部和侧边扫过，中间不铺底 */
header.glass-nav::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background:
        linear-gradient(108deg,
            transparent 0%,
            transparent 13%,
            rgba(255,255,255,0.72) 17%,
            rgba(255,255,255,0.12) 22%,
            transparent 29%,
            transparent 100%);
    -webkit-mask: linear-gradient(#000 0 0) border-box;
    mask: linear-gradient(#000 0 0) border-box;
    mix-blend-mode: screen;
    opacity: 0.55;
    pointer-events: none;
    z-index: 1;
    transform: translateX(-28%);
    animation: liquid-reflection 8s ease-in-out infinite;
}

/* 让内容位于反射层上方；中间区域仍由页面背景直接透出 */
header.glass-nav .logo,
header.glass-nav nav.glass-nav-menu {
    position: relative !important;
    z-index: 2 !important;
}

/* 轻微的液态轮廓呼吸，不改变中间内容 */
header.glass-nav {
    animation: liquid-outline 6s ease-in-out infinite;
}

@keyframes liquid-edge-shift {
    0% {
        opacity: 0.68;
        filter: hue-rotate(0deg) brightness(1);
    }
    100% {
        opacity: 1;
        filter: hue-rotate(8deg) brightness(1.12);
    }
}

@keyframes liquid-reflection {
    0%, 18% {
        transform: translateX(-34%);
        opacity: 0.12;
    }
    52% {
        transform: translateX(8%);
        opacity: 0.68;
    }
    82%, 100% {
        transform: translateX(34%);
        opacity: 0.18;
    }
}

@keyframes liquid-outline {
    0%, 100% {
        border-radius: 999px;
        box-shadow:
            0 18px 28px rgba(22, 75, 125, 0.18),
            0 3px 8px rgba(255, 255, 255, 0.18),
            inset 0 1px 0 rgba(255, 255, 255, 0.7),
            inset 0 -1px 0 rgba(255, 255, 255, 0.24);
    }
    50% {
        border-radius: 46% 54% 52% 48% / 54% 46% 54% 46%;
        box-shadow:
            0 21px 32px rgba(22, 75, 125, 0.22),
            0 4px 10px rgba(255, 255, 255, 0.22),
            inset 0 1px 0 rgba(255, 255, 255, 0.82),
            inset 0 -2px 0 rgba(255, 255, 255, 0.28);
    }
}

@media (prefers-reduced-motion: reduce) {
    header.glass-nav,
    header.glass-nav::before,
    header.glass-nav::after {
        animation: none !important;
    }
}

/* =========================================================
   凸透镜式 Liquid Glass
   取消生硬白边，保留轻微透镜底色和边缘折射
   ========================================================= */
header.glass-nav {
    background:
        radial-gradient(ellipse at 50% 48%,
            rgba(255,255,255,0.075) 0%,
            rgba(255,255,255,0.04) 48%,
            rgba(255,255,255,0.12) 82%,
            rgba(255,255,255,0.02) 100%) !important;
    border: 0 !important;
    backdrop-filter: blur(1.5px) saturate(145%) brightness(1.04) !important;
    -webkit-backdrop-filter: blur(1.5px) saturate(145%) brightness(1.04) !important;
    box-shadow:
        0 22px 36px rgba(31, 91, 145, 0.18),
        0 5px 16px rgba(255,255,255,0.18),
        inset 0 1px 2px rgba(255,255,255,0.34),
        inset 0 -2px 5px rgba(28, 93, 153, 0.13) !important;
}

/* 柔和透镜边缘：不再使用 1px 的硬白轮廓 */
header.glass-nav::before {
    inset: -12px !important;
    padding: 12px !important;
    border-radius: inherit !important;
    background:
        radial-gradient(ellipse at center,
            transparent 0 62%,
            rgba(255,255,255,0.04) 68%,
            rgba(255,255,255,0.22) 77%,
            rgba(255,255,255,0.46) 84%,
            rgba(255,255,255,0.08) 91%,
            transparent 100%),
        conic-gradient(from 215deg at 50% 50%,
            rgba(255,255,255,0.05),
            rgba(255,255,255,0.62),
            rgba(154,220,255,0.30),
            rgba(255,255,255,0.04),
            rgba(255,255,255,0.48),
            rgba(255,255,255,0.05));
    -webkit-mask: none !important;
    mask: none !important;
    filter: blur(5px) saturate(130%) !important;
    opacity: 0.72 !important;
    animation: lens-edge-breathe 6s ease-in-out infinite alternate !important;
}

/* 边缘折射带：亮度和色彩偏移只出现在外圈 */
header.glass-nav::after {
    inset: -4px !important;
    border-radius: inherit !important;
    background:
        radial-gradient(ellipse at center,
            transparent 0 66%,
            rgba(255,255,255,0.02) 69%,
            rgba(255,255,255,0.16) 73%,
            rgba(126,211,252,0.26) 78%,
            rgba(255,255,255,0.34) 82%,
            transparent 91%),
        linear-gradient(112deg,
            transparent 0 14%,
            rgba(255,255,255,0.50) 19%,
            rgba(136,220,255,0.24) 23%,
            transparent 29% 100%);
    mix-blend-mode: screen !important;
    filter: blur(3px) saturate(160%) !important;
    opacity: 0.72 !important;
    transform: translateX(-34%) rotate(-3deg) !important;
    animation: lens-refraction 9s ease-in-out infinite !important;
}

@keyframes lens-edge-breathe {
    0% {
        transform: scale(0.995);
        opacity: 0.58;
    }
    100% {
        transform: scale(1.012);
        opacity: 0.84;
    }
}

@keyframes lens-refraction {
    0%, 18% {
        transform: translateX(-36%) rotate(-3deg);
        opacity: 0.22;
    }
    52% {
        transform: translateX(4%) rotate(-3deg);
        opacity: 0.74;
    }
    84%, 100% {
        transform: translateX(34%) rotate(-3deg);
        opacity: 0.24;
    }
}

/* 回滚后的轻微透明度调整 */
header.glass-nav {
    background:
        radial-gradient(ellipse at 50% 48%,
            rgba(255,255,255,0.055) 0%,
            rgba(255,255,255,0.028) 48%,
            rgba(255,255,255,0.085) 82%,
            rgba(255,255,255,0.012) 100%) !important;
}

header.glass-nav::before {
    opacity: 0.66 !important;
}

header.glass-nav::after {
    opacity: 0.68 !important;
}


/* 仅微调 Logo 字体，让视觉大小和导航按钮接近 */
header.glass-nav .logo,
header.glass-nav .logo a {
    font-size: 0.89rem !important;
    font-weight: 600 !important;
}

.timetable-table td.no-course-cell {
    background: rgba(128, 128, 128, 0.18) !important;
    color: #5b6470 !important;
    font-weight: 700;
    box-shadow:
        inset 0 0 0 2px rgba(128, 128, 128, 0.34),
        inset 0 0 18px rgba(128, 128, 128, 0.10);
}

.timetable-table td.no-course-cell::after {
    content: "进行中";
    display: block;
    margin-top: 3px;
    color: #68717c;
    font-size: 11px;
    font-weight: 700;
}

/* 最终覆盖：Apple 风格导航圆角 */
header.glass-nav {
    border-radius: 28px !important;
}

header.glass-nav nav.glass-nav-menu ul li a {
    border-radius: 16px !important;
}

@media (max-width: 768px) {
    header.glass-nav {
        border-radius: 22px !important;
    }
}

.course-table-container {
    width: 70%;
    max-width: 100%;
    min-width: 0;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.58);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.46);
    box-shadow:
        0 18px 44px rgba(17, 24, 39, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.72);
    box-sizing: border-box;
}

.Friendship-Links-container {
    border: 1px solid rgba(255, 255, 255, 0.58);
    background: rgba(255, 255, 255, 0.46);
    box-shadow:
        0 18px 44px rgba(17, 24, 39, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.72);
    backdrop-filter: blur(16px) saturate(128%);
    -webkit-backdrop-filter: blur(16px) saturate(128%);
}

.course-table-container .collapsible-header {
    min-height: 66px;
}

.collapsible-container .collapsible-header {
    box-sizing: border-box;
    width: 100%;
    min-height: 80px;
}

.collapsible-container .collapsible-header .header-title {
    margin: 0 !important;
    text-align: left !important;
    color: #26364a !important;
    font-size: 20px !important;
    font-weight: 600 !important;
    letter-spacing: 0.12em;
    text-transform: none;
}

.collapsible-container .collapsible-header .course-header-hint {
    color: #526176;
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 0;
    text-transform: none;
}

.changelog-link {
    display: block;
    color: inherit;
}

.changelog-link .header-content {
    min-width: 0;
    flex-wrap: wrap;
}

.course-header-hint {
    color: #8490a1;
    font-size: 12px;
    letter-spacing: 0;
}

.container3.collapsible-container {
    padding: 0;
    overflow: hidden;
}

.container3.collapsible-container .collapsible-content .content-inner {
    padding: 16px 18px 22px;
}

.course-table-container .collapsible-content .content-inner {
    padding: 18px 18px 22px;
}

.container3 {
    padding-right: 18px;
    padding-bottom: 36px;
    padding-left: 18px;
    box-sizing: border-box;
}

.timetable-term {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px 18px;
    margin: 0 auto 14px;
    color: #526176;
    font-size: 13px;
    text-align: center;
}

.timetable-term span + span::before {
    content: "";
    display: inline-block;
    width: 1px;
    height: 12px;
    margin-right: 18px;
    background: #cbd5e1;
    vertical-align: -1px;
}

.table-wrap {
    overflow-x: auto;
    border: 1px solid #d8e0eb;
    border-radius: 8px;
    background: #fff;
    scrollbar-color: #a8b7ca #edf2f7;
}

.timetable-table {
    width: 100%;
    min-width: 0;
    font-size: 13px;
    color: #26364a;
    border-collapse: separate;
    border-spacing: 0;
}

.timetable-table thead th {
    height: 42px;
    padding: 8px 6px;
    border: 0;
    border-right: 1px solid rgba(255, 255, 255, 0.22);
    background: #3f70bd;
    color: #fff;
    font-size: 13px;
}

.timetable-table thead th:first-child {
    width: 48px;
}

.timetable-table thead th:nth-child(2) {
    width: 72px;
}

.timetable-table tbody td {
    height: 54px;
    padding: 7px 8px;
    border: 0;
    border-right: 1px solid #e1e7ef;
    border-bottom: 0;
    background: #fff;
    line-height: 1.4;
    text-align: center;
    vertical-align: middle;
}

.timetable-table tbody tr.period-break td,
.timetable-table tbody td[rowspan="2"] {
    border-bottom: 1px solid #d8e0eb;
}

.timetable-table tbody tr:last-child.period-break td {
    border-bottom: 0;
}

.timetable-table tbody td.period-cell,
.timetable-table tbody td.time-cell {
    background: #edf2fa;
    color: #47566b;
    white-space: nowrap;
}

.timetable-table tbody td.period-cell {
    font-weight: 700;
}

.timetable-table tbody td.time-cell {
    font-size: 11px;
    font-variant-numeric: tabular-nums;
}

.timetable-table tbody td.course-cell {
    min-width: 0;
    padding: 10px 8px;
    border: 1px solid rgba(63, 83, 109, 0.3);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.48);
    overflow-wrap: anywhere;
}

.course-cell strong,
.course-cell span {
    display: block;
}

.course-cell {
    position: relative;
    cursor: pointer;
}

.course-cell:focus-visible {
    outline: 3px solid #205f9c;
    outline-offset: -4px;
}

.course-cell .course-count-badge {
    position: absolute;
    top: 5px;
    right: 5px;
    display: grid;
    place-items: center;
    width: 20px;
    height: 20px;
    margin: 0;
    padding: 0;
    border: 1px solid rgba(38, 54, 74, 0.16);
    border-radius: 50%;
    background: #fff;
    color: #26364a;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
    box-shadow: 0 1px 4px rgba(31, 41, 55, 0.22);
}

.course-cell strong {
    font-size: 12px;
    font-weight: 700;
}

.course-cell span {
    margin-top: 3px;
    color: #4b5b6d;
    font-size: 11px;
}

.course-cell .course-week-note,
.course-cell .alternate-course-note {
    display: inline-block;
    margin-top: 6px;
    padding: 2px 6px;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.76);
    color: #536174;
    font-size: 10px;
}

.course-cell .alternate-course-note.is-hidden {
    display: none;
}

.course-major { background: #e7f2fb !important; }
.course-sports { background: #e6f4e8 !important; }
.course-politics { background: #fbefdd !important; }
.course-general { background: #e3f3f1 !important; }

.timetable-table td.course-cell.off-week {
    opacity: 0.5;
    background-color: transparent !important;
    background-image: none !important;
}

.timetable-table td.current-course {
    position: relative;
    z-index: 1;
    outline: 2px solid #2878bd;
    outline-offset: -3px;
}

.timetable-table td.current-course::after {
    content: "进行中";
    display: block;
    margin-top: 5px;
    color: #1769aa;
    font-size: 10px;
    font-weight: 700;
}

.current-course-status {
    min-height: 20px;
    margin: 12px auto 0;
    text-align: center;
}

.current-course-status.no-course {
    color: #697586;
}

.course-status-legend {
    margin-top: 12px;
}

.course-detail-dialog {
    width: min(92vw, 420px);
    max-width: 420px;
    padding: 0;
    border: 1px solid #d8e0eb;
    border-radius: 8px;
    background: #fff;
    color: #26364a;
    box-shadow: 0 18px 54px rgba(24, 39, 58, 0.24);
}

.course-detail-dialog::backdrop {
    background: rgba(24, 39, 58, 0.38);
    backdrop-filter: blur(3px);
}

.course-detail-panel {
    position: relative;
    padding: 24px;
}

.course-detail-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 50%;
    background: #edf2f7;
    color: #405168;
    font-size: 23px;
    line-height: 1;
    cursor: pointer;
}

.course-detail-eyebrow {
    margin: 0 0 6px;
    color: #607086;
    font-size: 12px;
}

.course-detail-panel h4 {
    margin: 0 42px 18px 0;
    color: #1f2f43;
    font-size: 20px;
}

.course-detail-content {
    display: grid;
    gap: 10px;
}

.course-detail-item {
    padding: 14px 0;
    border-bottom: 1px solid #e3e8ef;
}

.course-detail-item:last-child {
    border-bottom: 0;
}

.course-detail-item h5 {
    margin: 0;
    color: #26364a;
    font-size: 15px;
}

.course-detail-item dl {
    display: grid;
    gap: 10px;
    margin: 12px 0 0;
}

.course-detail-item dl > div {
    display: grid;
    grid-template-columns: 78px minmax(0, 1fr);
    gap: 10px;
    align-items: start;
}

.course-detail-item dt,
.course-detail-item dd {
    margin: 0;
    color: #5a687a;
    font-size: 13px;
    line-height: 1.55;
}

.course-detail-item dt {
    color: #718096;
}

.course-detail-item dd {
    color: #26364a;
    overflow-wrap: anywhere;
}

.status-pill-course {
    background: #e6f4e8;
    color: #287143;
    box-shadow: inset 0 0 0 1px #b9dec3;
}

.status-pill-free {
    background: #f1f3f6;
    color: #536174;
    box-shadow: inset 0 0 0 1px #d7dde5;
}

@media (max-width: 768px) {
    .container3 {
        padding-right: 10px;
        padding-left: 10px;
        box-sizing: border-box;
    }

    .course-table-container {
        padding: 0;
    }

    .course-table-container .collapsible-content .content-inner {
        padding: 16px 10px 18px;
    }

    .container3.collapsible-container .collapsible-content .content-inner {
        padding: 14px 10px 18px;
    }

    .timetable-term {
        gap: 7px 12px;
        font-size: 12px;
    }

    .timetable-term span + span::before {
        margin-right: 12px;
    }

    .timetable-table {
        min-width: 0;
    }

    .timetable-table thead th:first-child {
        width: 34px;
    }

    .timetable-table thead th:nth-child(2) {
        width: 52px;
    }

    .timetable-table thead th,
    .timetable-table tbody td {
        padding-right: 3px;
        padding-left: 3px;
    }

    .timetable-table tbody td.time-cell {
        font-size: 9px;
    }

    .timetable-table tbody td.course-cell {
        padding: 7px 3px;
    }

    .course-cell strong {
        font-size: 10px;
    }

    .course-cell span {
        font-size: 9px;
    }
}

@media (max-width: 768px) {
    header.glass-nav {
        display: flex !important;
        position: fixed !important;
        flex-wrap: nowrap !important;
        align-items: center !important;
        justify-content: space-between !important;
        gap: 10px !important;
        width: min(94vw, 1100px) !important;
        height: 62px !important;
        min-height: 62px !important;
        padding: 0 12px !important;
        box-sizing: border-box !important;
        overflow: visible !important;
    }

    header.glass-nav .logo {
        float: none !important;
        flex: 0 0 auto;
        margin: 0 !important;
        line-height: normal !important;
    }

    header.glass-nav .glass-nav-toggle {
        display: inline-flex !important;
        min-width: 40px;
        min-height: 44px;
        align-items: center;
        justify-content: center;
        margin-left: auto;
        padding: 0 12px;
        border: 1px solid rgba(255, 255, 255, 0.2);
        border-radius: 13px;
        color: #fff;
        background: rgba(255, 255, 255, 0.1);
        font: inherit;
        font-size: 0.78rem;
        cursor: pointer;
    }

    header.glass-nav nav.glass-nav-menu {
        position: absolute !important;
        top: calc(100% + 8px) !important;
        right: 0 !important;
        left: 0 !important;
        display: none !important;
        z-index: 3 !important;
        flex: none !important;
        width: auto !important;
        box-sizing: border-box !important;
        max-width: none !important;
        margin: 0 !important;
        padding: 8px !important;
        border: 1px solid rgba(255, 255, 255, 0.7) !important;
        border-radius: 20px !important;
        background: rgba(225, 238, 250, 0.94) !important;
        box-shadow: 0 16px 36px rgba(31, 68, 112, 0.2) !important;
        backdrop-filter: blur(18px) saturate(140%) !important;
        -webkit-backdrop-filter: blur(18px) saturate(140%) !important;
        overflow: visible !important;
    }

    header.glass-nav.is-open nav.glass-nav-menu {
        display: block !important;
    }

    header.glass-nav nav.glass-nav-menu ul {
        display: grid !important;
        flex: 1 1 auto !important;
        flex-direction: column !important;
        width: 100% !important;
        height: auto !important;
        flex-wrap: nowrap !important;
        gap: 4px !important;
        justify-content: stretch !important;
    }

    header.glass-nav nav.glass-nav-menu ul li {
        width: 100% !important;
    }

    header.glass-nav nav.glass-nav-menu ul li a {
        display: flex !important;
        width: 100%;
        height: 40px !important;
        box-sizing: border-box !important;
        justify-content: flex-start !important;
        padding: 0 14px !important;
        border-radius: 12px !important;
    }

    header.glass-nav nav.glass-nav-menu ul li a {
        border-color: rgba(71, 125, 244, 0.1) !important;
        color: #34445c !important;
        background: rgba(255, 255, 255, 0.46) !important;
    }

    header.glass-nav nav.glass-nav-menu ul li a:hover,
    header.glass-nav nav.glass-nav-menu ul li a:focus-visible,
    header.glass-nav nav.glass-nav-menu ul li a[aria-current="page"] {
        border-color: rgba(71, 125, 244, 0.24) !important;
        color: #244fa8 !important;
        background: rgba(255, 255, 255, 0.78) !important;
    }

    header.glass-nav .logo {
        display: flex !important;
        min-height: 62px;
        align-items: center !important;
    }
}

/* 首页内容与其他页面统一为轻柔的玻璃卡片风格 */
body {
    color: #26364a;
}

.top-section {
    width: min(1100px, calc(100% - 36px));
    margin-right: auto;
    margin-left: auto;
}

.container1,
.collapsible-container,
.course-table-container,
.Friendship-Links-container {
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
    border: 1px solid rgba(255, 255, 255, 0.62);
    border-radius: 26px !important;
    background: rgba(255, 255, 255, 0.54);
    box-shadow:
        0 18px 44px rgba(17, 24, 39, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.72);
    backdrop-filter: blur(15px) saturate(135%);
    -webkit-backdrop-filter: blur(15px) saturate(135%);
}

.container1 {
    height: auto;
    min-height: 0;
    margin: 100px auto 20px;
    padding: clamp(28px, 5vw, 52px) clamp(20px, 5vw, 56px) 30px;
    color: #526176;
    line-height: 1.8;
}

.container1::before {
    content: none;
}

.container1 .avatra-img {
    width: 150px;
    height: 150px;
    margin: 0 auto 18px;
    border: 6px solid rgba(255, 255, 255, 0.86);
    background-color: rgba(255, 255, 255, 0.75);
    box-shadow: 0 20px 42px rgba(31, 67, 117, 0.2);
}

.container1 h1 {
    margin: 0;
    color: #26364a;
    font-size: clamp(2rem, 5vw, 2.8rem);
    font-weight: 760;
    letter-spacing: -0.055em;
    line-height: 1.2;
}

.container1 #type-text {
    position: static;
    display: inline-block;
    width: 17em;
    max-width: 100%;
    height: clamp(38px, 6vw, 54px);
    margin: 6px auto 0;
    border-right: 0;
    animation: none;
    text-align: left;
    vertical-align: top;
    color: #526f9b;
    font-size: 1.05rem;
    line-height: clamp(38px, 6vw, 54px);
    white-space: nowrap;
}

.container1 .typewriter-cursor {
    display: inline-block;
    height: 1em;
    margin-left: 1px;
    border-right: 2px solid #526f9b;
    animation: blink 0.8s infinite;
    vertical-align: -0.12em;
}

.container1 .divider-solid {
    width: min(100%, 680px);
    height: 1px;
    margin: 22px auto;
    background: rgba(91, 119, 160, 0.2);
}

.container1 .home-welcome {
    margin: 0 0 16px;
    color: #1e3049;
    font-size: clamp(1.25rem, 3vw, 1.55rem);
    font-weight: 700;
    line-height: 1.4;
}

.container1 p {
    max-width: 820px;
    margin: 10px auto;
    padding: 0;
    color: #526176;
    font-size: 0.94rem;
    line-height: 1.85;
    text-align: center;
}

.container1 p a {
    color: #3569d4;
    text-decoration: underline;
    text-decoration-color: rgba(53, 105, 212, 0.3);
    text-underline-offset: 3px;
}

.container1 p a:hover {
    color: #244fa8;
}

.container1 .target-section {
    margin-top: 8px;
}

.collapsible-container,
.course-table-container,
.Friendship-Links-container {
    margin-right: auto;
    margin-left: auto;
}

.Friendship-Links-container {
    height: auto;
    padding: 22px 24px 20px;
}

.Friendship-Links-container .friend-links-list {
    padding-bottom: 0;
}

.Friendship-Links-container .friend-link-item {
    margin-bottom: 4px;
}

.Friendship-Links-container .friend-link-item {
    border: 1px solid rgba(91, 119, 160, 0.12);
    background: rgba(255, 255, 255, 0.52);
}

.Friendship-Links-container .friend-link {
    color: #526176;
    transition: color 0.2s ease, background-color 0.2s ease;
}

.Friendship-Links-container .friend-link:hover {
    color: #3569d4;
    background-color: rgba(71, 125, 244, 0.09);
}

.Copyright-container {
    margin: 4px auto 20px;
    color: #526176;
    text-align: center;
}

.Copyright-container .Copyright {
    font-size: 0.82rem;
}

@media (max-width: 768px) {
    .top-section {
        width: calc(100% - 24px);
    }

    .container1 {
        margin-top: 96px;
        padding: 28px 18px 24px;
        border-radius: 22px !important;
    }

    .container1 .avatra-img {
        width: 128px;
        height: 128px;
    }

    .container1 p {
        font-size: 0.88rem;
    }

    .collapsible-container,
    .course-table-container,
    .Friendship-Links-container {
        width: 100%;
        border-radius: 20px !important;
    }

    .Friendship-Links-container {
        padding: 20px 14px 18px;
    }
}

@media (max-width: 420px) {
    .top-section {
        width: calc(100% - 20px);
    }

    .container1 {
        padding-right: 14px;
        padding-left: 14px;
    }

    .container1 .avatra-img {
        width: 112px;
        height: 112px;
    }

    .container1 #type-text {
        font-size: 0.9rem;
    }

    .container1 p {
        overflow-wrap: anywhere;
    }
}
