/* 隐藏 radio 按钮 */
.toggle-radio {
    display: none;
}

/* 容器样式 */
.toggle-container {
    text-align: center;
    position: relative;
    margin: 20px auto 40px;
    max-width: 1000px;
    padding: 0 20px;
}

/* 选项按钮 */
.toggle-label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 22px;
    cursor: pointer;
    background: #f4f6fb;
    border: 1px solid rgba(15, 23, 42, 0.12);
    border-radius: 999px;
    transition: transform 0.2s ease, background 0.2s ease, border 0.2s ease;
    margin: 6px;
    font-size: 1.1em;
    color: #111;
}

.toggle-label:hover {
    transform: translateY(-1px);
    background: rgba(255, 255, 255, 0.2);
}

.toggle-radio:checked + .toggle-label {
    background: #111827;
    color: #ffffff;
    border-color: rgba(15, 23, 42, 0.4);
}

/* 切换内容 */
.toggle-content {
    position: relative;
    left: 0;
    right: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease, transform 0.5s ease;
    transform: translateY(10px);
    padding: 0;
    border-radius: 16px;
    background: transparent;
    border: none;
    box-shadow: none;
    max-height: 0;
    overflow: hidden;
}

/* 选中的内容显示 */
#toggle-about:checked ~ .content-about,
#toggle-site:checked ~ .content-site {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    position: relative;
    max-height: 2000px;
    padding: 30px;
}

.button-about {
    display: inline-block;
    padding: 8px 16px;
    font-size: 16px;
    font-weight: 600;
    color: #111;
    background: #f4f6fb;
    border: none;
    border-radius: 999px;
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.12);
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.button-about:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.18);
}

.button-about:active {
    transform: scale(0.98);
}

@media (min-width:828px){
    .button-about{
        font-size: 1em;
    }

    /* 选项按钮 */
    .toggle-label {
        font-size: 1.2em;
    }

    #about-me .text,
    #about-site .text {
        text-align: left;
        color: #111;
        line-height: 1.8;
    }
}
