@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;
}

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 {
    margin-right: 5px;
    vertical-align: -2px;
}

.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;
}