/* Slyday footer components: extracted from lanyuan/footer.php at runtime; theme file untouched. */
.gotop {
    position: fixed;
    right: 20px;
    bottom: 40px;
    z-index: 999;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.gotop a {
    display: flex;
    justify-content: center;
    align-items: center; /* 修复为 align-items 使其居中 */
    width: 45px;
    height: 45px;
    background: #fff;
    color: #333;
    border-radius: 50%;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,.1);
    transition: all .3s;
    text-decoration: none;
    overflow: hidden;
}
.gotop a em {
    display: none;
}
.gotop a:hover {
    background: var(--accent-color, #f16b6f);
    color: #fff;
}
.dark-mode .gotop a {
    background: #2d2d2d;
    color: #ccc;
    box-shadow: 0 2px 10px rgba(0,0,0,.3);
}
.dark-mode .gotop a:hover {
    background: var(--accent-color, #f16b6f);
    color: #fff;
}

/* 主题模式切换面板 */
.theme-mode-panel {
    position: fixed;
    right: 75px;
    bottom: 95px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,.1);
    padding: 10px;
    display: none;
    z-index: 1000;
    flex-direction: column;
    gap: 5px;
    opacity: 0;
    transform: translateX(20px);
    transition: all .3s;
}
.theme-mode-panel.show {
    display: flex;
    opacity: 1;
    transform: translateX(0);
}
.theme-mode-btn {
    padding: 8px 15px;
    border: none;
    background: transparent;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    color: #555;
    text-align: left;
    transition: all .2s;
    display: flex;
    align-items: center;
    gap: 8px;
}
.theme-mode-btn:hover {
    background: #f5f5f5;
    color: var(--accent-color, #f16b6f);
}
.theme-mode-btn.active {
    background: var(--accent-color, #f16b6f);
    color: #fff;
}
.dark-mode .theme-mode-panel {
    background: #2d2d2d;
    box-shadow: 0 4px 15px rgba(0,0,0,.3);
}
.dark-mode .theme-mode-btn {
    color: #bbb;
}
.dark-mode .theme-mode-btn:hover {
    background: #3d3d3d;
    color: var(--accent-color, #f16b6f);
}
.dark-mode .theme-mode-btn.active {
    background: var(--accent-color, #f16b6f);
    color: #fff;
}
