/* 通用样式重置 */
body {
    font-family: 'Default.woff2';
    background-color: #f5f5f5;
    background-image: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    background-size: cover;
    background-attachment: fixed;
}

/* 通用无序列表样式 */
.navlist,
.navbar ul,
section ul,
.link-group ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

/* 主内容容器样式 */
.main-content {
    background-color: rgba(241, 241, 241, 0.8);
    padding: 1em;
    border-radius: 0px;
}

/* 头部样式 */
header {
    width: 100%;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

#header-container {
    background-color: rgba(227, 227, 227, 0.95);
    height: 50px;
    user-select: none;
    z-index: 2000;
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
}

#text-logo {
    display: flex;
    align-items: center;
    padding-left: 50px;
}

#text-logo a {
    font-size: 25px;
    padding: 0 20px;
    transition: all 0.3s ease;
    position: relative;
    color: #333;
    font-weight: bold;
}

#text-logo a:hover {
    transform: scale(1.05);
    color: #ff6b6b;
    text-shadow: 0 2px 4px rgba(255, 107, 107, 0.4);
}

.navbar {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.navlist {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    height: 100%;
}

.navbar a {
    padding: 0 15px;
    font-size: 20px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    color: #333;
}

.navbar a:hover {
    background: none;
    color: rgb(32, 159, 233);
    transform: translateY(-2px);
}

.navbar a:visited {
    color: black;
    display: block;
}

.navbar a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 3px;
    background-color: rgb(32, 159, 233);
    transition: width 0.3s ease, left 0.3s ease;
    border-radius: 1.5px;
}

.navbar a:hover::after {
    width: 80%;
    left: 10%;
}

.navbar ul {
    flex-wrap: none;
    justify-content: none;
    text-transform: none;
}

.navbar li {
    float: left;
    cursor: pointer;
}

.navbar ul li:hover {
    transform: none;
    font-weight: inherit;
}

/* 导航栏滚动容器 */
.navbar-scroll-container {
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.navbar-scroll-container::-webkit-scrollbar {
    display: none;
}

/* 结束头部样式 */
#header-end {
    margin-top: 40px;
    display: flexbox;
}

/* 时间显示样式 */
#time {
    text-align: center;
    user-select: none;
}

/* 时间显示容器样式 */
.time-display {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    margin: 15px 0;
}

.time-display p {
    margin: 0 !important;
    padding: 0;
}

/* 开始时间样式 */
#start-time {
    color: #a09494;
    font-weight: normal;
    font-size: 16px;
    padding: 4px 12px;
    border-radius: 15px;
    background-color: rgba(255, 255, 255, 0.6);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

#start-time:hover {
    background-color: rgba(255, 255, 255, 0.9);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* 结束时间样式 */
#end-time {
    color: #0077cc;
    font-weight: bold;
    font-size: 16px;
    padding: 4px 12px;
    border-radius: 15px;
    background-color: rgba(0, 119, 204, 0.1);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

#end-time:hover {
    background-color: rgba(0, 119, 204, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* 内容区块样式 */
section ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin: 0 auto;
    text-transform: capitalize;
}

section li {
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0px 0px 10px #cccccc;
    margin: 20px;
    padding: 20px;
    text-align: center;
    /* flex-grow 必须为 0：卡片数量凑不满一行时保持等宽，由 justify-content 居中，
       否则落单的卡片会被拉伸占满整行，非常难看 */
    flex: 0 1 calc(25% - 40px);
    animation: fadeIn 1s ease-in-out;
    cursor: pointer;
}

ul li a {
    font-family: 'Minecraft-Bold';
}

ul li:hover {
    transform: scale(1.05);
    font-weight: 700;
}

section {
    padding-bottom: 30px;
    padding-left: 40px;
    margin-top: 40px;
}

/* 底部样式 */
footer {
    background-color: rgba(248, 249, 250, 0.95);
    padding: 30px 0;
    margin-top: 50px;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
    backdrop-filter: blur(8px);
    border-top: 1px solid rgba(233, 236, 239, 0.8);
    font-family: 'Default.woff2';
}

footer a {
    color: #4a6cf7;
    transition: all 0.3s ease;
    text-decoration: none;
    position: relative;
    padding: 3px 0;
    display: inline-block;
}

footer a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: currentColor;
    transition: width 0.3s ease;
}

footer a:hover {
    transform: translateY(-1px);
}

/* 为所有主题添加footer链接hover下划线 */
footer a:hover::after {
    width: 100%;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 25px;
    gap: 60px;
}

.link-group {
    margin: 0;
    display: inline-block;
    vertical-align: top;
}

.link-group h3 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 18px;
    font-weight: 600;
    position: relative;
    padding-bottom: 8px;
    text-align: center;
    color: #333;
    border-bottom: none;
}

.link-group h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 3px;
    border-radius: 1.5px;
}

.link-group ul {
    text-align: center;
}

.link-group ul li {
    margin-bottom: 10px;
    transition: transform 0.2s ease;
}

.link-group ul li:hover {
    transform: translateX(3px);
}

.footer-contact {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(233, 236, 239, 0.8);
    width: 100%;
}

.footer-contact address,
.footer-contact .disclaimer {
    margin-bottom: 12px;
    font-style: normal;
    color: #555;
}

.footer-contact .disclaimer b {
    color: #333;
}

.footer-contact .footer-stats {
    margin-bottom: 12px;
    font-size: 14px;
    color: #6c757d;
}

.copyright {
    font-size: 14px;
    color: #6c757d;
    margin-top: 15px;
}

/* dock栏容器样式 */
.dock-container {
    position: fixed;
    right: 2rem;
    bottom: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    z-index: 3000;
    align-items: center;
}