@font-face {
    font-family: 'Smileysans';
    src: url('../font/SmileySans.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
}

body {
    margin: 0;
    padding: 0;
    background-image: url('../img/pc.png');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    background-attachment: fixed;
    min-height: 100vh;
}

@media (max-width: 768px) {
    body {
        background-image: url('../img/mob.png');
    }
}

.topbar {
    width: 100%;
    height: 60px;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    padding: 0 24px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px) saturate(120%);
    -webkit-backdrop-filter: blur(20px) saturate(120%);
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.12);
    font-size: 20px;
    color: #222;
}

.topbar-links {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 10px;
    padding-right: 35px;
    /* 与屏幕右侧保持距离 */
}

.topbar a {
    background: transparent;
    color: inherit;
    box-shadow: none;
    padding: 0;
    margin: 0 3px 0 0;
    border-radius: 0;
}

.topbar a:last-child {
    margin-right: 0;
}

.topbar a:hover,
.topbar a:focus {
    background: transparent;
    color: inherit;
    box-shadow: none;
    text-decoration: none;
}

.topbar button{
    background: #00000000;
    box-shadow: #00000000;
}

a,
button {
    display: inline-block;
    margin: 4px 6px 4px 0;
    padding: 4px 10px;
    color: #fff;
    background: #009dff;
    border-radius: 12px;
    text-decoration: none;
    font-weight: bold;
    font-size: 15px;
    transition: background 0.2s, box-shadow 0.2s;
    box-shadow: 0 1px 4px rgba(255, 152, 0, 0.08);
    border: none;
    outline: none
}

.title {
    position: static;
    width: 600px;
    padding: 48px 0 32px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    box-shadow: 0 4px 32px rgba(0, 0, 0, 0.12);
    backdrop-filter: blur(24px) saturate(140%);
    -webkit-backdrop-filter: blur(24px) saturate(140%);
    margin: 25vh auto 0 auto;
    /* 页面中部且随滚动移动 */
}

.title_img {
    max-width: 70%;
    max-height: 70%;
    object-fit: contain;
}

.title_text {
    font-family: 'Smileysans', Arial, sans-serif;
    font-size: 2.5rem;
    color: #008cff;
    text-align: center;
    margin-bottom: 12px;
    letter-spacing: 0.5px;
    user-select: none;
}

.sections {
    margin-top: 32px;
    /* 距离title下方32px */
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
    padding: 0 32px 32px 32px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

@media (min-width: 900px) {
    .sections {
        grid-template-columns: repeat(2, 1fr);
        /* 电脑端一行2个板块 */
    }
}

@media (max-width: 900px) {
    .sections {
        margin-top: 220px;
        gap: 18px;
        padding: 0 12px 24px 12px;
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

@media (max-width: 600px) {
    .sections {
        margin-top: 160px;
        gap: 12px;
        padding: 0 6px 16px 6px;
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

.section-card {
    display: grid;
    grid-template-columns: 110px 1fr;
    align-items: center;
    background: rgba(255, 255, 255, 0.18);
    border-radius: 16px;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.10);
    backdrop-filter: blur(18px) saturate(120%);
    -webkit-backdrop-filter: blur(18px) saturate(120%);
    padding: 16px 22px;
    min-height: 100px;
    transition: box-shadow 0.2s;
    overflow: hidden;
}

.section-card:hover {
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.18);
}

.section-img {
    width: 150px;
    height: 95px;
    object-fit: cover;
    border-radius: 12px;
    background: #eee;
    display: block;
    margin-right: 18px;
}

.section-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 0 18px 0 55px;
    /* 左侧间距增大，整体右移 */
    min-width: 0;
    word-break: break-word;
    overflow-wrap: break-word;
}

.section-title {
    font-size: 1.25rem;
    font-weight: bold;
    color: #007cff;
    margin-bottom: 6px;
    font-family: 'Smileysans', Arial, sans-serif;
}

.section-subtitle {
    font-size: 1rem;
    color: #232323;
    margin-bottom: 8px;
    font-family: Arial, sans-serif;
    word-break: break-word;
    overflow-wrap: break-word;
}

@media (max-width: 700px) {
    .title {
        width: 90vw;
        min-height: 140px;
        padding: 24px 0 18px 0;
    }

    .title_img {
        width: 90vw;
        height: 140px;
    }

    .section-subtitle {
        display: none;
    }

    .section-link {
        min-width: 120px;
        max-width: none;
        width: auto;
        box-sizing: border-box;
        text-align: center;
        padding: 8px 0;
        font-size: 16px;
        white-space: nowrap;
        /* 一行显示全部内容 */
        overflow: hidden;
        text-overflow: ellipsis;
    }
}

.section-link {
    margin-top: 0;
    padding: 4px 18px;
    font-size: 15px;
    border-radius: 10px;
    background: #006eff;
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    box-shadow: 0 1px 4px rgba(0, 85, 255, 0.08);
    transition: background 0.2s, box-shadow 0.2s;
    display: inline-block;
    min-width: 60px;
    max-width: 120px;
    text-align: center;
}

.section-link:hover,
.section-link:focus {
    background: #003cff;
    box-shadow: 0 2px 8px rgba(0, 106, 255, 0.18);
    color: #fff;
    text-decoration: underline;
}

.section-link img,svg {
    margin-right: 5px;
    margin-bottom: -0.5px;
    vertical-align: -1px;
}

.footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin: 32px 0 16px 0;
    gap: 8px;
}

.footer a {
    background: transparent;
    color: #007cff;
    box-shadow: none;
    border-radius: 0;
    padding: 0 8px;
    margin: 0 2px;
    font-weight: bold;
    text-decoration: none;
    font-size: 15px;
    transition: color 0.2s;
}

.footer a:hover,
.footer a:focus {
    color: #003cff;
    text-decoration: underline;
    background: transparent;
    box-shadow: none;
}

/* 顶栏下方黄色提示条 */
.top-notice{
    position: fixed;
    /* 桌面固定宽度并居中 */
    width: 845px;
    left: 50%;
    transform: translateX(-50%);
    top: calc(60px + 12px);
    z-index: 180;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px; /* 改为 8px 间距 */
    padding: 6px 8px; /* 水平内边距改为 8px */
    background: linear-gradient(90deg, rgba(248,214,74,0.86), rgba(242,192,55,0.86));
    color: #111;
    border-radius: 24px;
    box-shadow: 0 8px 28px rgba(0,0,0,0.18);
    -webkit-backdrop-filter: blur(6px) saturate(120%);
    backdrop-filter: blur(6px) saturate(120%);
    max-width: calc(100% - 30px);
}
.top-notice-link{
    color: #111;
    text-decoration: none;
    font-weight: 700;
    font-size: 16px;
    text-align: center;
    display: block;
    width: 100%;
}

.top-notice-close{
    background: rgba(0,0,0,0.06);
    border: none;
    color: #111;
    width: 34px;
    height: 34px;
    border-radius: 18px;
    font-size: 18px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

        @media (max-width: 768px){
            /* 移动端：取消固定宽度和 translate，使用左右间距并限制最大宽度 */
            .top-notice{
                width: auto;
                left: 8px;
                transform: none;
                top: calc(60px + 6px);
                padding-top: 6px;
                padding-bottom: 6px;
                max-width: calc(100% - 16px);
            }
            .top-notice-link{ font-size: 14px; padding: 3px 8px; display: inline-block; width: auto; }
            .top-notice-close{ right: 8px; width: 28px; height: 28px; }
        }

@keyframes footerCursorFade {
            0% { opacity: 0; }
            50% { opacity: 1; }
            100% { opacity: 0; }
        }
        .footer-cursor-blink {
            animation: footerCursorFade 1.2s ease-in-out infinite; /* 1s 对应每 0.5s 闪烁一次（可视为来回） */
        }